MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / willApply

Method willApply

src/actions/Play.ts:302–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300 }
301
302 override async willApply(): Promise<void> {
303 if (this.player || this.mediaKey) {
304 if (this.player instanceof AudioPlayer) {
305 this.player.loop = false;
306 }
307 return;
308 }
309
310 throw new Error('Media player was not defined.');
311 }
312
313 override async apply({ paused = false } = {}): Promise<void> {
314 // Check if the audio should have a fade time

Callers 1

onLoadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected