Closed anderjs closed 4 years ago
Other thing I noticed is what Twilio-create-react-app changes the current localVideoTrack, and localAudioTrack with the method .restart but, this is given me an issue:
log.js:164 2020-10-06 19:12:18.248Z | WARN in [LocalVideoTrack #2: 1c4bc0e1-33e1-4eb8-bebd-e9c23461b373]: setMediaStreamTrack failed: DOMException: The peer connection is closed.
Is this normal?
Solved using the actual local media tracks, using the metod restart.
@anderjs would you be willing to share more details of your solution? Here is what we are experiencing - sound familiar?
If I connect to audio without headphones - audio works correctly, at duration session I connect airpods and audio works correctly, after that I disconnect airpods and audio crashed
Expected behavior: Switching Audio Devices.
Actual behavior: Switching Audio Device is not working the participant the sounds go off after changing audio, Camera Device change is working. I'm using navigator.mediaDevices.enumerateDevices with audio input/output and camera as well. -->
Here is the code for participant: Participant Code I'm using TRACK PUBLISHED event to replace all my current tracks, and this automatic should attach the nef audio with ref. But is not working.
ClassRoom Code
We having issues with this since the deploy to production, Twilio video docs are great, but since only supports vanilla in react the patterns a little bit different. Hope you can help me with this, and yes I look at twilio-CRA but the requeriments are not the same, so we can't just clone all code. Hope you understand.
Software versions: