MCPcopy Create free account
hub / github.com/SpringRoll/SpringRoll / update

Method update

src/localization/captions/CaptionPlayer.js:41–48  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

stopMethod · 0.95
isFinishedMethod · 0.80

Tested by

no test coverage detected