* Check if a stream is available
(type: 'camera' | 'screenVideo' | 'screenAudio' | 'microphone')
| 369 | * Check if a stream is available |
| 370 | */ |
| 371 | isStreamAvailable(type: 'camera' | 'screenVideo' | 'screenAudio' | 'microphone'): boolean { |
| 372 | switch (type) { |
| 373 | case 'camera': |
| 374 | return !!this.streams.cameraStream; |
| 375 | case 'screenVideo': |
| 376 | return !!this.streams.screenVideoStream; |
| 377 | case 'screenAudio': |
| 378 | return !!this.streams.screenAudioStream; |
| 379 | case 'microphone': |
| 380 | return !!this.streams.microphoneStream; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | /** |
| 385 | * Map pseudo-stream type to required master streams (Tauri-specific logic) |
no outgoing calls
no test coverage detected