OpenVidu / openvidu

OpenVidu Platform main repository
https://openvidu.io
Apache License 2.0
1.86k stars 464 forks source link

Audio is not working properly when camera is muted #797

Closed CSantosM closed 1 year ago

CSantosM commented 1 year ago

If a MediaStream is published with video track stopped and a standard audio track, the video was not playing because the video track of subscriber was enabled. This track must be disabled for allowing play the video. Issue reference: https://openvidu.discourse.group/t/microphone-doesnt-work-correctly-on-web-from-a-mobile-device/4514

Steps for reproducing the problem:

  1. Connect a standard user to a session
  2. In other device, initialice a publisher
  3. Mute the camera publisher using publishVideo method releasing the video device (it applies track.stop()).
  4. Connect to same session as other participant
  5. The first particpant is not receiving the second participant audio.
scadyr commented 1 year ago

Hello team, i found an issue and i don't know if anyone else found it too. The issue is sometimes when i share screen then audio is not working, here is the error message :

"openvidu-webcomponent-2.27.0.js:2 [SessionComponent] ERROR: NO_STREAM_PLAYING_EVENT StreamManager of Stream str_CAM_TGMN_con_RlpqC0eq03 (Subscriber) did not trigger "streamPlaying" event in 4000 ms e"

thanks before

CSantosM commented 1 year ago

I can't reproduce this issue. Please, describe the steps I must follow to discover it.

scadyr commented 1 year ago

sorry for my slow reply, ok, here is the steps :

  1. I test with 2 participants, 1 moderator and 1 publisher
  2. Then a moderator start share screen by just click the share button and then after few minutes click it again to stop
  3. Then the audio is notworking and that error shown

but.. i don't know why this bug is missing and everything is normal when i try to make sure if its a bug, i don't know what happend and right now it's still work properly

was it a network connection issue ?

best regards