MCPcopy Index your code
hub / github.com/MALSync/MALSync / playerExtras

Function playerExtras

src/utils/player.ts:103–111  ·  view source on GitHub ↗
(item: PlayerTime, player: HTMLVideoElement)

Source from the content-addressed store, hash-verified

101let videoIdentifier = '';
102
103function playerExtras(item: PlayerTime, player: HTMLVideoElement) {
104 const tempVideoIdentifier = player.currentSrc;
105 if (item.current > 1 && videoIdentifier !== tempVideoIdentifier) {
106 videoIdentifier = tempVideoIdentifier;
107 logger.log('New player detected', player.currentSrc);
108
109 setFullscreen(player);
110 }
111}
112
113async function setFullscreen(player) {
114 if (!(await api.settings.getAsync('autofull'))) return;

Callers 1

startTrackingMethod · 0.85

Calls 1

setFullscreenFunction · 0.85

Tested by

no test coverage detected