* Updates any currently playing caption. * This should be called every frame. * * @param {Number} deltaTime Time passed in seconds since last update call. * @memberof CaptionPlayer
(deltaTime)
| 39 | * @memberof CaptionPlayer |
| 40 | */ |
| 41 | update(deltaTime) { |
| 42 | if (this.activeCaption) { |
| 43 | this.activeCaption.update(deltaTime); |
| 44 | if (this.activeCaption.isFinished()) { |
| 45 | this.stop(); |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Starts playing a caption. |
nothing calls this directly
no test coverage detected