mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
video player chapter button and flyout fixes, added time to chapter title in flyout
This commit is contained in:
parent
a701c6615b
commit
f250bd54b1
3 changed files with 33 additions and 1 deletions
|
@ -169,6 +169,14 @@
|
|||
|
||||
videoJSextension.setup_video( $( '#videoWindow' ), item );
|
||||
|
||||
(this).addEvent("loadstart",function(){
|
||||
$(".vjs-remaining-time-display").hide();
|
||||
});
|
||||
|
||||
(this).addEvent("durationchange",function(){
|
||||
if ((this).duration() != "Infinity")
|
||||
$(".vjs-remaining-time-display").show();
|
||||
});
|
||||
});
|
||||
|
||||
return $('video', nowPlayingBar)[0];
|
||||
|
@ -243,7 +251,7 @@ var videoJSextension = {
|
|||
vjs_chapters[i] = [];
|
||||
|
||||
vjs_chapter = {};
|
||||
vjs_chapter.Name = chapter.Name;
|
||||
vjs_chapter.Name = chapter.Name + " (" + ticks_to_human(chapter.StartPositionTicks) + ")";
|
||||
vjs_chapter.StartPositionTicks = chapter.StartPositionTicks;
|
||||
vjs_chapter.vid_id = vid_id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue