* Sets time and line index of caption. * * @param {Number} [time=0] - Time in milliseconds. * @memberof Caption
(time = 0, renderer = { lineBegin: () => { }, lineEnd: () => { } })
| 105 | * @memberof Caption |
| 106 | */ |
| 107 | start(time = 0, renderer = { lineBegin: () => { }, lineEnd: () => { } }) { |
| 108 | this.reset(); |
| 109 | this.renderer = renderer; |
| 110 | this.updateTimeIndex(time); |
| 111 | this.updateState(this.time, this.lines[this.lineIndex].startTime - 1); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Updates the current time and index of the caption instance |
nothing calls this directly
no test coverage detected