[mediacapture-main] Video with audio element pause after play during phone call (#869)

trouba has just created a new issue for https://github.com/w3c/mediacapture-main:

== Video with audio element pause after play during phone call ==
Following [this stack overflow issue](https://stackoverflow.com/questions/71407559/video-element-pause-while-phone-call/71408591#71408591), [webrtc google group discussion](https://groups.google.com/g/discuss-webrtc/c/9T0P6KftmaI) and per request of @fippo:

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 I can see a pause event firing on the element)

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

My main questions are:
-  Is this a normal behaviour ? 
- can it be tracked (by an event other than the pause one) ? 
- Is there any way to know there is a phone call ongoing
- is there 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
Open https://webrtc.github.io/samples/src/content/getusermedia/record/
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

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/869 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 March 2022 14:28:22 UTC