(props: MediaProps)
| 91 | protected lastTime = -1; |
| 92 | |
| 93 | public constructor(props: MediaProps) { |
| 94 | super(props); |
| 95 | if (!this.awaitCanPlay()) { |
| 96 | this.scheduleSeek(this.time()); |
| 97 | } |
| 98 | |
| 99 | if (props.play) { |
| 100 | this.play(); |
| 101 | } |
| 102 | this.volume = props.volume ?? 1; |
| 103 | this.setVolume(this.volume); |
| 104 | } |
| 105 | |
| 106 | public isPlaying(): boolean { |
| 107 | return this.playing(); |