([pause, type, media]: string[])
| 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) { |
nothing calls this directly
no test coverage detected