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

Method getCurrentState

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

Source from the content-addressed store, hash-verified

247 public removeListener(listener: StreamListener): void { this.listeners.delete(listener); }
248
249 public getCurrentState(): StreamState {
250 return {
251 cameraStream: this.cameraStream,
252 screenVideoStream: this.screenVideoStream,
253 screenVideoStreamWithPip: this.screenVideoStreamWithPip,
254 screenAudioStream: this.screenAudioStream,
255 microphoneStream: this.microphoneStream,
256 allAudioStream: this.allAudioStream,
257 };
258 }
259
260 /** Set the PiP overlay status (for mobile) */
261 public setPipOverlayStatus(status: {

Callers 8

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

Calls

no outgoing calls

Tested by

no test coverage detected