Commit f2f3077
committed
🔊 fix: conditionally capture audio stream based on audioSource existence
Refines audio capture logic by ensuring an audio source is selected before attempting to capture the audio stream. This change enhances application stability by preventing unnecessary errors and aligns with best practices for media stream handling.
- Ensures audio capture attempts are made only when an explicit audio source is provided, thereby avoiding potential issues in scenarios where no audio source is selected.
- Improves user experience by eliminating the possibility of encountering errors related to audio capture when no audio source is selected, ensuring the application behaves predictably and efficiently under all conditions.1 parent 9af8f73 commit f2f3077
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
0 commit comments