mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed video stop issue
This commit is contained in:
parent
031afb1b8e
commit
78e7572d76
2 changed files with 17 additions and 6 deletions
|
@ -483,7 +483,7 @@ _V_.ResolutionMenuItem = _V_.MenuItem.extend({
|
|||
jQuery( this.player.controlBar.el ).find( '.vjs-quality-text' ).html( this.options.label );
|
||||
|
||||
// Change the source and make sure we don't start the video over
|
||||
var currentSrc = $("#"+this.options.src[0].vid_id).find('video').attr("src");
|
||||
var currentSrc = this.player.tag.src;
|
||||
var newSrc = currentSrc.replace("videoBitrate="+resolutions[this.player.options.currentResolution],"videoBitrate="+resolutions[this.options.src[0].res]);
|
||||
|
||||
if (this.player.duration() == "Infinity") {
|
||||
|
@ -657,7 +657,7 @@ _V_.ChapterMenuItem = _V_.MenuItem.extend({
|
|||
//jQuery( this.player.controlBar.el ).find( '.vjs-chapter-text' ).html( this.options.label );
|
||||
|
||||
if (this.player.duration() == "Infinity") {
|
||||
var currentSrc = $("#"+this.options.src[0].vid_id).find('video').attr("src");
|
||||
var currentSrc = this.player.tag.src;
|
||||
|
||||
if (currentSrc.indexOf("StartTimeTicks") >= 0) {
|
||||
var newSrc = currentSrc.replace(new RegExp("StartTimeTicks=[0-9]+","g"),"StartTimeTicks="+this.options.src[0].StartPositionTicks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue