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

Method constructor

src/actions/Pause.ts:16–27  ·  view source on GitHub ↗
([pause, type, media]: string[])

Source from the content-addressed store, hash-verified

14 player: any;
15
16 constructor([pause, type, media]: string[]) {
17 super();
18
19 this.type = type as MediaType;
20 this.media = media;
21
22 if (typeof media === 'undefined') {
23 this.player = this.engine.mediaPlayers(type);
24 } else {
25 this.player = this.engine.mediaPlayer(type, media);
26 }
27 }
28
29 override async willApply(): Promise<void> {
30 if (this.player) {

Callers

nothing calls this directly

Calls 2

mediaPlayersMethod · 0.80
mediaPlayerMethod · 0.80

Tested by

no test coverage detected