mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
Merge pull request #1612 from Maxr1998/master
Add support for seeking with milliseconds
This commit is contained in:
commit
6b45755480
@ -3647,6 +3647,14 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
|
||||
this.seek(parseInt(ticks), player);
|
||||
};
|
||||
|
||||
PlaybackManager.prototype.seekMs = function (ms, player) {
|
||||
|
||||
player = player || this._currentPlayer;
|
||||
|
||||
var ticks = ms * 10000;
|
||||
this.seek(ticks, player);
|
||||
};
|
||||
|
||||
PlaybackManager.prototype.playTrailers = function (item) {
|
||||
|
||||
var player = this._currentPlayer;
|
||||
|
@ -201,6 +201,9 @@ import appHost from 'apphost';
|
||||
'rewind': () => {
|
||||
playbackManager.rewind();
|
||||
},
|
||||
'seek': () => {
|
||||
playbackManager.seekMs(options);
|
||||
},
|
||||
'togglefullscreen': () => {
|
||||
playbackManager.toggleFullscreen();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user