New issue
Advanced search Search tips

Issue 872633 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Can hear audio and video element unattached to the DOM

Reported by martin.r...@gmail.com, Aug 9

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.75 Chrome/68.0.3440.75 Safari/537.36

Steps to reproduce the problem:
1. Create an `audio` or `video` element from Javascript, do not attach it to the DOM
2. play it

What is the expected behavior?
On Firefox 61.0.1, we don't hear the audio/video element if it's not attached to the DOM. I don't know for other browsers.

What went wrong?
We can hear the audio/video even if it's not rendered in the DOM

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 68.0.3440.75  Channel: n/a
OS Version: Ubuntu 16.04.5 LTS
Flash Version: 

I'm using a `video` element that is not attached to the DOM as a stream input for other `video` elements (attached to the DOM) using `HTMLMediaElement.captureStream`
 
Labels: Needs-Triage-M68
Cc: viswa.karala@chromium.org
Labels: Needs-Feedback Triaged-ET
Thanks for filing the issue!

@Reporter: Could you please provide sample Test file/ URL that reproduces the issue which help in further triaging the issue in better way.

Thanks!
I tried to make the most simple example I could. On Chromium 68.0.3440.75 you will see the issue that I explained, on Firefox 61.0.1 you won't.
test_stream.tar.gz
2.3 MB Download
Project Member

Comment 4 by sheriffbot@chromium.org, Aug 10

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Target-70 M-70 FoundIn-70 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 17.10 using chrome reported version #68.0.3440.106 and latest canary #70.0.3524.3.
This is a non-regression issue as it is observed from M60 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Status: WontFix (was: Untriaged)
Both Firefox and Chrome allow videos not in the DOM to play. You can test this by doing:
```
var v = document.createElement('video');
v.src = ...
v.play();
```
The issue is not that we can't play a video that is not attached to the DOM. I know we can, otherwise I couldn't use it as a stream input for other video elements.

My code example is slightly different than yours. Did you try the code example I gave? You would see that the behavior is not the same on Chrome and Firefox.

I have a video element (attached to the DOM) which uses an other video element as a stream source (not attached to the DOM).

My issue is that we can hear the source video on Chrome but we don't hear the source video on Firefox 61.0.1. And honestly I don't understand why if we do hear the video with your example. So maybe the issue is deeper than I expected.

The example I gave is quite similar to this one: https://webrtc.github.io/samples/src/content/capture/video-video/ The only difference is that the source video is not attached to the DOM in my case

Sign in to add a comment