twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
571 stars 217 forks source link

Video track pausing in middle of calls. #1676

Closed Jaikishann closed 2 years ago

Jaikishann commented 2 years ago

Hi Team, Recently we are getting more and more reports on screen video track pausing in middle of call and resuming after some time. We were also able to reproduce the issue and collect the logs for all the participants in the call.

RoomSid: RM781d56f0b5a03041a997756d6646c13b No of participants in call: 3 track publisher's twilio log: https://storage.teleport.video/files/f81JyJSiXQyF/twiliolog-910b7a23-f2b7-4ca2-911e-90d44e7a67a6.log track subscriber1 twilio log: https://storage.teleport.video/files/fdyOGwwZ6TP8/twiliolog-b5d9f6e8-9d5b-4069-b82e-11c58d23ed83.log track subscriber2 twilio log: https://storage.teleport.video/files/fL1VFwC5Q8jN/twiliolog-50ba9957-00f0-40ca-bb4b-8e0312542629.log

We also took screenshot of the webrtc graph - https://share.anysnap.app/fJhK3WqiNwdc. As you can see the framesReceived graph dropped for a couple of minutes and resumed after some time.

Expected behavior:

The screen track ( technically video track) should be playing without any interruption.

Actual behavior:

The video track pauses often for about 5 mins and resumes back. We have also noticed that this issue sometimes occurs multiple times in the same call.

Software versions:

axel127 commented 2 years ago

We've been seeing the same issue for a few weeks and haven't found a resolution yet. We've tried changing the trackSwitchOffMode, but that didn't really help.

makarandp0 commented 2 years ago

Hello @Jaikishann, Thank you for reporting this issue. I looked into the room RM781d56f0b5a03041a997756d6646c13b, but found that we do not have metrics from client for this room. This could happen if you are connected with option insights: false - Was that the case for your application? Could you send us another room sid with insights turned on?

The webrtc graph you attached is helpful - it does indicate that subscriber did not receive any frames during that period, Could you be able to collect the graph (or even better webrtc dump) from both subscriber and publisher ?

You mentioned that you were able to reproduce the issue locally - Can you send us some steps if possible that would help us reproduce the issue locally?

Thanks, Makarand

makarandp0 commented 2 years ago

Hello @Jaikishann, @axel127 I have filed an internal bug to track this issue (VIDEO-8211), If you find repro steps or any details to help narrow this down please let us know.

Jaikishann commented 2 years ago

Hi @makarandp0, Currently we are not aware of the steps to reproduce the issue. It happens randomly. But we will try to turn on insights and provide you the RoomSID when it happens in future calls.

nicopernas commented 2 years ago

Hey! quick update on our next steps regarding this issue. We've identified the culprit and we are rolling out a mitigation that should be available WW within 2 or 3 days max. Apologies for the inconveniences. Thanks.

nicopernas commented 2 years ago

The mitigation has been rolled out WW. Any feedback or confirmation of the fix will be appreciated :) cc: @axel127 @Jaikishann

axel127 commented 2 years ago

Thanks @nicopernas! We'll follow up with the users who were experiencing the issue and let you know if they observe an improvement.

makarandp0 commented 2 years ago

@Jaikishann, @axel127 I am closing this issue now as its fixed. Please reopen another if you are still seeing this behavior.