MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / stop

Method stop

src/Timer.ts:306–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 this._media.pause()
305 }
306 public stop(): void {
307 if (!this._ready) { return }
308 this._ticker.stop()
309 this._setState('Stopped')
310 }
311 public isRunning(): boolean { return !this._media.paused && !this._media.ended }
312 public isPaused(): boolean { return this._media.paused }
313 public isStopped(): boolean { return this._media.ended || (this._ready && (this._media.currentTime >= this._media.duration)) }

Callers 2

constructorMethod · 0.95
_tickMethod · 0.95

Calls 2

_setStateMethod · 0.95
stopMethod · 0.65

Tested by

no test coverage detected