Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Sep 25, 2017
1 parent 668178f commit dc2ce05
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
24 changes: 12 additions & 12 deletions dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -2187,6 +2187,7 @@ var mp4demuxer_MP4Demuxer = function () {
baseMediaDecodeTime *= Math.pow(2, 32);
baseMediaDecodeTime += MP4Demuxer.readUint32(tfdt, 8);
baseMediaDecodeTime -= timeOffset * timescale;
baseMediaDecodeTime = Math.max(baseMediaDecodeTime, 0);
var upper = Math.floor(baseMediaDecodeTime / (UINT32_MAX + 1));
var lower = Math.floor(baseMediaDecodeTime % (UINT32_MAX + 1));
MP4Demuxer.writeUint32(tfdt, 4, upper);
Expand Down Expand Up @@ -7287,11 +7288,10 @@ var stream_controller_StreamController = function (_EventHandler) {
config = hls.config,
media = this.media;

// if video not attached AND
// start fragment already requested OR start frag prefetch disable
// exit loop
// => if start level loaded and media not attached but start frag prefetch is enabled and start frag not requested yet, we will not exit loop
if (this.levelLastLoaded !== undefined && !media && (this.startFragRequested || !config.startFragPrefetch)) {
// if start level not parsed yet OR
// if video not attached AND start fragment already requested OR start frag prefetch disable
// exit loop, as we either need more info (level not parsed) or we need media to be attached to load new fragment
if (this.levelLastLoaded === undefined || !media && (this.startFragRequested || !config.startFragPrefetch)) {
return;
}

Expand Down Expand Up @@ -7515,7 +7515,7 @@ var stream_controller_StreamController = function (_EventHandler) {
// return -1 return 0 return 1
//logger.log(`level/sn/start/end/bufEnd:${level}/${candidate.sn}/${candidate.start}/${(candidate.start+candidate.duration)}/${bufferEnd}`);
// Set the lookup tolerance to be small enough to detect the current segment - ensures we don't skip over very small segments
var candidateLookupTolerance = Math.min(maxFragLookUpTolerance, candidate.duration);
var candidateLookupTolerance = Math.min(maxFragLookUpTolerance, candidate.duration + (candidate.deltaPTS ? candidate.deltaPTS : 0));
if (candidate.start + candidate.duration - candidateLookupTolerance <= bufferEnd) {
return 1;
} // if maxFragLookUpTolerance will have negative value then don't return -1 for first element
Expand Down Expand Up @@ -7968,7 +7968,6 @@ var stream_controller_StreamController = function (_EventHandler) {
logger["b" /* logger */].log('both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC');
}
this.levels = data.levels;
this.startLevelLoaded = false;
this.startFragRequested = false;
var config = this.config;
if (config.autoStartLoad || this.forceStartLoad) {
Expand Down Expand Up @@ -8496,12 +8495,13 @@ var stream_controller_StreamController = function (_EventHandler) {
// at that stage, there should be only one buffered range, as we reach that code after first fragment has been buffered
var startPosition = media.seeking ? currentTime : this.startPosition,
startPositionBuffered = buffer_helper.isBuffered(mediaBuffer, startPosition),
firstbufferedPosition = buffered.start(0);
// if currentTime not matching with expected startPosition or startPosition not buffered
if (currentTime !== startPosition || !startPositionBuffered && Math.abs(startPosition - firstbufferedPosition) < config.maxSeekHole) {
firstbufferedPosition = buffered.start(0),
startNotBufferedButClose = !startPositionBuffered && Math.abs(startPosition - firstbufferedPosition) < config.maxSeekHole;
// if currentTime not matching with expected startPosition or startPosition not buffered but close to first buffered
if (currentTime !== startPosition || startNotBufferedButClose) {
logger["b" /* logger */].log('target start position:' + startPosition);
// if startPosition not buffered, let's seek to buffered.start(0)
if (!startPositionBuffered) {
if (!startNotBufferedButClose) {
startPosition = firstbufferedPosition;
logger["b" /* logger */].log('target start position not buffered, seek to buffered.start(0) ' + startPosition);
}
Expand Down Expand Up @@ -14785,7 +14785,7 @@ var hls_Hls = function () {
hls__createClass(Hls, null, [{
key: 'version',
get: function get() {
return "0.8.2";
return "0.8.3";
}
}, {
key: 'Events',
Expand Down
2 changes: 1 addition & 1 deletion dist/hls.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/hls.light.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hls.light.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.light.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hls.min.js

Large diffs are not rendered by default.

0 comments on commit dc2ce05

Please sign in to comment.