Video pause while phone call

676 views
Skip to first unread message

Nicolas trouba

unread,
Mar 3, 2022, 3:36:28 PM3/3/22
to discuss-webrtc
Hello 
I've got an issue with my app and I could reproduce it on this sample: https://webrtc.github.io/samples/src/content/getusermedia/record/

During a phone call, if I open a tab with a video with audio element, the video automatically pause (and can see a pause event on the element)

This does not happen if the video element was loaded and played before the phone call start, or if the video has no audio.

Is this a normal behaviour, and can it be tracked (by an event other than the pause one) ? Is there any way to know there is a phone call ongoing, or any way to restart the video during the phone call (element.play() works, but a pause event immediately happens) ?  

To reproduce: 
- On a mobile (iOS or Android)
- Start a phone call
- The video is paused
- If you manually launch element.play(), you can see the frame in the video updating, and then pause again
- The record works correctly
Reply all
Reply to author
Forward
0 new messages