MCPcopy Create free account
hub / github.com/ecto/muni / setVideoStream

Function setVideoStream

depot/console/src/lib/videoFrameStore.ts:212–216  ·  view source on GitHub ↗
(cameraId: number, stream: MediaStream)

Source from the content-addressed store, hash-verified

210
211/** Store a video stream for a camera. */
212export function setVideoStream(cameraId: number, stream: MediaStream): void {
213 videoStreams.set(cameraId, stream);
214 globalStore.version++;
215 globalStore.lastUpdateTime = performance.now();
216}
217
218/** Get a video stream for a camera. */
219export function getVideoStream(cameraId: number): MediaStream | undefined {

Callers 1

useRoverConnectionRtcFunction · 0.90

Calls 1

setMethod · 0.45

Tested by

no test coverage detected