w3c / mediacapture-fromelement

API to create a MediaStream from Media Element
https://w3c.github.io/mediacapture-fromelement
Other
21 stars 15 forks source link

Clarify if requestFrame is intended to be defined as a method of CanvasCaptureMediaStream or MediaStreamTrack #76

Closed guest271314 closed 5 years ago

guest271314 commented 5 years ago

The specification appears to state that requestFrame() is a method of CanvasCaptureMediaStreamTrack. However, at Mozilla Firefox requestFrame is a method of CanvasCaptureMediaStream not MediaStreamTrack.

See

guest271314 commented 5 years ago

Related https://github.com/web-platform-tests/wpt/issues/10088. The issue persists at Firefox 65 and Chromium 72

alvestrand commented 5 years ago

The initial revision of mediastream-fromelement was written in terms of capturing a stream. Eventually it was realized that what could be captured from a canvas only made sense as a single MediaStreamTrack, and the specification was rewritten in the form of CanvasCaptureMediaStreamTrack.

The implementations are artifacts of these older specifications, and should be corrected. Chrome's IDL conforms to the spec: https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/mediacapturefromelement/canvas_capture_media_stream_track.idl?type=cs&g=0

Pehrsons commented 5 years ago

The right Firefox bug to follow is https://bugzilla.mozilla.org/show_bug.cgi?id=1231131