MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / destroy

Method destroy

packages/player/src/parent-media.ts:105–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 destroy(): void {
106 this.teardownObserver();
107 for (const m of this._entries) {
108 m.el.pause();
109 m.el.src = "";
110 }
111 this._entries = [];
112 this._urlAudioEntry = null;
113 this._urlAudioSrc = null;
114 }
115
116 updateMuted(muted: boolean): void {
117 for (const m of this._entries) m.el.muted = muted;

Callers 9

SourceEditor.tsxFile · 0.45
usePreviewPersistenceFunction · 0.45
fetchHealthFunction · 0.45
createFileServerFunction · 0.45
disconnectedCallbackMethod · 0.45
controls.test.tsFile · 0.45
createReadStreamMethod · 0.45

Calls 2

teardownObserverMethod · 0.95
pauseMethod · 0.65

Tested by 1

fetchHealthFunction · 0.36