([action, type, media, ...props]: string[])
| 15 | player: any; |
| 16 | |
| 17 | constructor([action, type, media, ...props]: string[]) { |
| 18 | super(); |
| 19 | |
| 20 | this.type = type as MediaType; |
| 21 | this.media = media; |
| 22 | this.props = props; |
| 23 | |
| 24 | if (typeof media === 'undefined' || media === 'with') { |
| 25 | this.player = this.engine.mediaPlayers(type); |
| 26 | } else { |
| 27 | this.player = this.engine.mediaPlayer(type, media); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | override async willApply(): Promise<void> { |
| 32 | if (this.player) { |
nothing calls this directly
no test coverage detected