You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec is light in terms of how enabled=false tracks should be handled by HTMLMediaElement.
There are a few behavioural changes that are worth tightening:
Should rvfc callbacks be called for each frame of an enabled=false tracks?
From testing, it appear rvfc callbacks are called for both Chrome and Safari. It seems though that if all tracks are enabled=false, UA may stop camera and callbacks would no longer be called. It might be more deterministic if rvfc is never called for an enabled=false track.
Should change of video frame size alter the media element size? Chrome, Safari and Firefox seem to update the size.
What should videoWidth/videoHeight return? Chrome and Safari seem to return the latest frame size, Firefox returns 1.
The text was updated successfully, but these errors were encountered:
It seems though that if all tracks are enabled=false, UA may stop camera and callbacks would no longer be called.
Why would callbacks stop? The spec says"A muted or disabled MediaStreamTrack renders either silence (audio), black frames (video), or a zero-information-content equivalent." This seems accomplishable without hardware.
It says frames plural, but doesn't specify frequency. As long as we emit black frames, shouldn't VF callbacks happen?
Currently, the callbacks are called for each new video frame generated by the camera (even though the frame is then turned into black).
When camera is off, there is no longer any frame being produced. The browser could of course call rvfc from time to time, to emulate this but at which frame rate? And for which purpose?
The thing is that whether the camera is off or not becomes observable to web pages.
This does not seem great and may lead to compat issues if we do not define something more precise.
It says frames plural, but doesn't specify frequency. As long as we emit black frames, shouldn't VF callbacks happen?
rvfc exposes the black frames behaviour of UA that is otherwise not observable to the web page or the user.
It seems good to make this behaviour interoperable.
The spec is light in terms of how enabled=false tracks should be handled by HTMLMediaElement.
There are a few behavioural changes that are worth tightening:
From testing, it appear rvfc callbacks are called for both Chrome and Safari. It seems though that if all tracks are enabled=false, UA may stop camera and callbacks would no longer be called. It might be more deterministic if rvfc is never called for an enabled=false track.
The text was updated successfully, but these errors were encountered: