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
|
@ -680,3 +680,13 @@ _V_.ChapterMenuItem = _V_.MenuItem.extend({
|
|||
}
|
||||
});
|
||||
|
||||
//convert Ticks to human hr:min:sec format
|
||||
function ticks_to_human(str) {
|
||||
|
||||
var in_seconds = (str / 10000000);
|
||||
var hours = '0'+Math.floor(in_seconds/3600);
|
||||
var minutes = '0'+Math.floor((in_seconds-(hours*3600))/60);
|
||||
var seconds = '0'+Math.round(in_seconds-(hours*3600)-(minutes*60));
|
||||
|
||||
return [hours.substr(-2),minutes.substr(-2),seconds.substr(-2)].join(":");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue