* Check if a stream is available
(type: 'camera' | 'screenVideo' | 'screenAudio' | 'microphone')
| 390 | * Check if a stream is available |
| 391 | */ |
| 392 | isStreamAvailable(type: 'camera' | 'screenVideo' | 'screenAudio' | 'microphone'): boolean { |
| 393 | switch (type) { |
| 394 | case 'camera': |
| 395 | return !!this.streams.cameraStream; |
| 396 | case 'screenVideo': |
| 397 | return !!this.streams.screenVideoStream; |
| 398 | case 'screenAudio': |
| 399 | return !!this.streams.screenAudioStream; |
| 400 | case 'microphone': |
| 401 | return !!this.streams.microphoneStream; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * Map pseudo-stream type to required master streams (Tauri-specific logic) |
no outgoing calls
no test coverage detected