MCPcopy Create free account
hub / github.com/Roy3838/Observer / getCurrentState

Method getCurrentState

app/src/utils/streamManager.ts:277–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 public removeListener(listener: StreamListener): void { this.listeners.delete(listener); }
276
277 public getCurrentState(): StreamState {
278 return {
279 cameraStream: this.cameraStream,
280 screenVideoStream: this.screenVideoStream,
281 screenVideoStreamWithPip: this.screenVideoStreamWithPip,
282 screenAudioStream: this.screenAudioStream,
283 microphoneStream: this.microphoneStream,
284 allAudioStream: this.allAudioStream,
285 };
286 }
287
288 /** The live <video> a feed plays in (null until it's open), for drawing it elsewhere: the
289 * mobile status PiP draws each agent's crop from it. */

Callers 11

addListenerMethod · 0.95
notifyListenersMethod · 0.95
SharingPermissionsModalFunction · 0.80
SensorStatusBarFunction · 0.80
handleStartTestFunction · 0.80
MCPFunction · 0.80
RunningAgentsStripFunction · 0.80
SensorModalFunction · 0.80
startNewBufferMethod · 0.80
pre-processor.tsFile · 0.80
captureScreenDesktopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected