MCPcopy
hub / github.com/MALSync/MALSync / setIframeProgress

Method setIframeProgress

src/utils/player.ts:68–77  ·  view source on GitHub ↗

Used by iframe Proxy

(time: PlayerTime, setTime?: (time: number) => void)

Source from the content-addressed store, hash-verified

66
67 /** Used by iframe Proxy */
68 public setIframeProgress(time: PlayerTime, setTime?: (time: number) => void) {
69 if (typeof setTime !== 'undefined') {
70 this.proxySetTime = setTime;
71 clearTimeout(this.proxySetTimeTimeout!);
72 this.proxySetTimeTimeout = setTimeout(() => {
73 this.proxySetTime = null;
74 }, 15000);
75 }
76 this.notifyListeners(time);
77 }
78
79 public canSetTime() {
80 return Boolean(this.proxySetTime) || Boolean(this.currentPlayer);

Callers 2

runPageFunction · 0.80
messagePageListenerFunction · 0.80

Calls 1

notifyListenersMethod · 0.95

Tested by

no test coverage detected