Skip to content

Commit

Permalink
update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Nov 29, 2016
1 parent 59e6f0b commit 5588da0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
20 changes: 7 additions & 13 deletions dist/hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -970,15 +970,14 @@ var AudioStreamController = function (_EventHandler) {
key: 'startLoad',
value: function startLoad(startPosition) {
if (this.tracks) {
var media = this.media,
lastCurrentTime = this.lastCurrentTime;
var lastCurrentTime = this.lastCurrentTime;
this.stopLoad();
if (!this.timer) {
this.timer = setInterval(this.ontick, 100);
}
this.fragLoadError = 0;
if (media && lastCurrentTime) {
_logger.logger.log('configure startPosition @' + lastCurrentTime);
if (lastCurrentTime > 0) {
_logger.logger.log('override startPosition with lastCurrentTime @' + lastCurrentTime.toFixed(3));
this.state = State.IDLE;
} else {
this.lastCurrentTime = this.startPosition ? this.startPosition : startPosition;
Expand Down Expand Up @@ -3113,21 +3112,16 @@ var StreamController = function (_EventHandler) {
key: 'startLoad',
value: function startLoad(startPosition) {
if (this.levels) {
var media = this.media,
lastCurrentTime = this.lastCurrentTime,
var lastCurrentTime = this.lastCurrentTime,
hls = this.hls;
this.stopLoad();
if (!this.timer) {
this.timer = setInterval(this.ontick, 100);
}
this.level = -1;
this.fragLoadError = 0;
if (media && lastCurrentTime > 0) {
_logger.logger.log('configure startPosition @' + lastCurrentTime.toFixed(3));
if (!this.lastPaused) {
_logger.logger.log('resuming video');
media.play();
}
if (lastCurrentTime > 0) {
_logger.logger.log('override startPosition with lastCurrentTime @' + lastCurrentTime.toFixed(3));
} else {
this.lastCurrentTime = this.startPosition ? this.startPosition : startPosition;
}
Expand Down Expand Up @@ -8382,7 +8376,7 @@ var Hls = function () {
value: function startLoad() {
var startPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;

_logger.logger.log('startLoad');
_logger.logger.log('startLoad(' + startPosition + ')');
this.levelController.startLoad();
this.streamController.startLoad(startPosition);
this.audioStreamController.startLoad(startPosition);
Expand Down
8 changes: 4 additions & 4 deletions dist/hls.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 5588da0

Please sign in to comment.