mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update video osd
This commit is contained in:
parent
b2bab22271
commit
ba2ccfb17a
13 changed files with 54 additions and 80 deletions
|
@ -896,6 +896,8 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
|
|||
|
||||
self.seek = function (ticks, player) {
|
||||
|
||||
ticks = Math.max(0, ticks);
|
||||
|
||||
player = player || currentPlayer;
|
||||
if (player && !enableLocalPlaylistManagement(player)) {
|
||||
return player.seek(ticks);
|
||||
|
@ -960,15 +962,10 @@ define(['events', 'datetime', 'appSettings', 'pluginManager', 'userSettings', 'g
|
|||
// Go back 15 seconds
|
||||
ticks += userSettings.skipForwardLength() * 10000;
|
||||
|
||||
var data = getPlayerData(player).streamInfo;
|
||||
var mediaSource = data.mediaSource;
|
||||
var runTimeTicks = self.duration(player) || 0;
|
||||
|
||||
if (mediaSource) {
|
||||
var runTimeTicks = mediaSource.RunTimeTicks || 0;
|
||||
|
||||
if (ticks < runTimeTicks) {
|
||||
self.seek(ticks);
|
||||
}
|
||||
if (ticks < runTimeTicks) {
|
||||
self.seek(ticks);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue