mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Fix Firefox subtitle offset
This commit is contained in:
parent
178d698feb
commit
a91afee7b6
@ -649,7 +649,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
function setTrackEventsSubtitleOffset(trackEvents, offsetValue) {
|
function setTrackEventsSubtitleOffset(trackEvents, offsetValue) {
|
||||||
|
|
||||||
if (Array.isArray(trackEvents)) {
|
if (Array.isArray(trackEvents)) {
|
||||||
offsetValue = updateCurrentTrackOffset(offsetValue);
|
offsetValue = updateCurrentTrackOffset(offsetValue) * 1e7; // ticks
|
||||||
trackEvents.forEach(function(trackEvent) {
|
trackEvents.forEach(function(trackEvent) {
|
||||||
trackEvent.StartPositionTicks -= offsetValue;
|
trackEvent.StartPositionTicks -= offsetValue;
|
||||||
trackEvent.EndPositionTicks -= offsetValue;
|
trackEvent.EndPositionTicks -= offsetValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user