Skip to content

Commit

Permalink
Enable TV Support for 'Ask to Skip'
Browse files Browse the repository at this point in the history
  • Loading branch information
viown committed Nov 4, 2024
1 parent c5cc093 commit 54a9ed1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { MediaError } from 'types/mediaError';
import { getMediaError } from 'utils/mediaError';
import { toApi } from 'utils/jellyfin-apiclient/compat';
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind.js';
import browser from 'scripts/browser.js';
import { bindSkipSegment } from './skipsegment.ts';

const UNLIMITED_ITEMS = -1;
Expand Down Expand Up @@ -3687,9 +3686,7 @@ export class PlaybackManager {
}

bindMediaSegmentManager(self);
if (!browser.tv && !browser.xboxOne && !browser.ps4) {
this._skipSegment = bindSkipSegment(self);
}
this._skipSegment = bindSkipSegment(self);
}

getCurrentPlayer() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/playback/skipsegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SkipSegment extends PlaybackSubscriber {
}
});

document.body.appendChild(elem);
document.querySelector('#videoOsdPage')?.appendChild(elem);
this.skipElement = elem;
}
}
Expand Down

0 comments on commit 54a9ed1

Please sign in to comment.