diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 60e9f0f520..e8fcd1cbd5 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -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; diff --git a/src/scripts/inputManager.js b/src/scripts/inputManager.js index 23a0ec25a3..915324cfc0 100644 --- a/src/scripts/inputManager.js +++ b/src/scripts/inputManager.js @@ -201,6 +201,9 @@ import appHost from 'apphost'; 'rewind': () => { playbackManager.rewind(); }, + 'seek': () => { + playbackManager.seekMs(options); + }, 'togglefullscreen': () => { playbackManager.toggleFullscreen(); },