You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
Updating to version 4.6 causes an issue when you try to resume playback locally in Chrome. The issue is in
vjs.ChromeCastComponent.prototype.onStopAppSuccess. I think the issue is this gets run:
this.player_.src(this.player_.options_['sources']);
and in 4.6 the player now resets when you change the source videojs/video.js#1124
The below code solves this but is not the correct way to do it. The key here is running load() to get it to reload the file locally.
// Fix for 4.6 not working correctly otherwise
this.player_.load();
var context = this;
setTimeout(function(){
if (context.apiMedia.playerState == "IDLE") {
context.player_.currentTime(0);
context.player_.onPause();
} else {
if (!this.paused) {
context.player_.play();
}
context.player_.currentTime(context.currentMediaTime);
}
this.apiMedia = null;
},500);
The text was updated successfully, but these errors were encountered:
Updating to version 4.6 causes an issue when you try to resume playback locally in Chrome. The issue is in
vjs.ChromeCastComponent.prototype.onStopAppSuccess. I think the issue is this gets run:
this.player_.src(this.player_.options_['sources']);
and in 4.6 the player now resets when you change the source
videojs/video.js#1124
The below code solves this but is not the correct way to do it. The key here is running load() to get it to reload the file locally.
The text was updated successfully, but these errors were encountered: