New issue
Advanced search Search tips
Starred by 3 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

Reading track.getCapabilities() should not need to wait right after track opening

Project Member Reported by mcasas@chromium.org, Apr 14 2017

Issue description

MediaStreamTrack.getCapabilities() does not have the image capture-related
capabilities immediately after getUserMedia() returns the MediaStreamTrack,
which forces uses to introduce a variable delay such as e.g. the one in [1]

This should not be needed, since gUM() is asynchronous already.

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getCapabilities.html?q=getcapabilities+html&sq=package:chromium&dr=C&l=36




 

Comment 1 by mcasas@chromium.org, Apr 14 2017

Cc: guidou@chromium.org
Status: Available (was: Unconfirmed)
Summary: Reading track.getCapabilities() should not need to wait right after track opening (was: track.getCapabilities() should not need to wait right after track opening)
It should be noted this also affects MediaStreamTrack.getSettings(), that also requires a delay before correct results are returned. Proposed solution of making getUserMedia not resolve until image capture-related stuff is ready should fix this case as well.
To be clear, code snippet currently logs an empty object in Chrome 60.0.3092.0:

video.srcObject = await navigator.mediaDevices.getUserMedia({ video : true });
video.onplay = function() {
  console.log(track.getCapabilities());
})

Comment 4 by mcasas@chromium.org, May 11 2017

Labels: Pri-2
Project Member

Comment 5 by sheriffbot@chromium.org, May 14

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment