MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / snapshot

Method snapshot

packages/core/src/runtime/clock.ts:151–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 snapshot(): TransportClockSnapshot {
152 return {
153 time: this.now(),
154 playing: this.isPlaying(),
155 rate: this._rate,
156 duration: this._duration,
157 source: this.getSource(),
158 };
159 }
160
161 reachedEnd(): boolean {
162 return Number.isFinite(this._duration) && this.now() >= this._duration;

Callers 2

clock.test.tsFile · 0.80

Calls 3

nowMethod · 0.95
isPlayingMethod · 0.95
getSourceMethod · 0.95

Tested by

no test coverage detected