Bug 178218
| Summary: | getUserMedia video track "ended" on first load of new tab | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mike Block <mikeblock> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | eric.carlson, youennf |
| Priority: | P2 | ||
| Version: | Safari 11 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 11 | ||
Mike Block
The video track in the stream reports as readyState="ended" on gUM return. Not sure if this is a load sequence error. If I reload the page though it works reliably, both audio and video active.
Steps to reproduce:
1. call a page in a new tab
2. add navigator.mediaDevices.getUserMedia with {audio:true,video:{facingMode:'user'}} call to a window.onload event
3. check the readystate of the returned tracks - video is shown as "ended"
4. reload the tab and everything is fine
I've also tried adding an alert before the getUserMedia call to see if there's a background event that needs to complete. No amount of waiting changes the result and there are no errors reported in console.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
youenn fablet
Fippo mentioned in https://github.com/webrtc/adapter/issues/699 the following information:
------------
you might want to check https://bugs.chromium.org/p/chromium/issues/detail?id=574041 -- I get the code responsible is old enough to be still shared with webkit.
------------