()
| 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 |