Bug 178218 - getUserMedia video track "ended" on first load of new tab
Summary: getUserMedia video track "ended" on first load of new tab
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: iPhone / iPad iOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 10:20 PDT by Mike Block
Modified: 2017-10-18 10:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Block 2017-10-12 10:20:48 PDT
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.
Comment 1 youenn fablet 2017-10-18 10:51:26 PDT
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.

------------