MCPcopy
hub / github.com/midrender/revideo / constructor

Function constructor

packages/2d/src/lib/components/Media.ts:93–104  ·  view source on GitHub ↗
(props: MediaProps)

Source from the content-addressed store, hash-verified

91 protected lastTime = -1;
92
93 public constructor(props: MediaProps) {
94 super(props);
95 if (!this.awaitCanPlay()) {
96 this.scheduleSeek(this.time());
97 }
98
99 if (props.play) {
100 this.play();
101 }
102 this.volume = props.volume ?? 1;
103 this.setVolume(this.volume);
104 }
105
106 public isPlaying(): boolean {
107 return this.playing();

Callers

nothing calls this directly

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected