Closed Bug 1446864 Opened 6 years ago Closed 6 years ago

requestFrame is a method of CanvasCaptureMediaStreamTrack

Categories

(Developer Documentation Graveyard :: API: WebRTC, defect, P1)

All
Other
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: guest271314, Assigned: sheppy)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

The specification https://w3c.github.io/mediacapture-fromelement/#dom-canvascapturemediastreamtrack-requestframe states that requestFrame is a method of CanvasCaptureMediaStreamTrack. 

The current documentation at MDN https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/requestFrame describes requestFrame as a method of MediaStream.

The example should be 

  stream.getVideoTracks()[0].requestFrame();

instead of

  stream.requestFrame();
Firefox 60 

"requestFrame" in canvasStream // true
"requestFrame" in canvasStream.getVideoTracks()[0] // false

Chromium 64

"requestFrame" in canvasStream // false
"requestFrame" in canvasStream.getVideoTracks()[0] // true
Include note that at Firefox requestFrame() is a method of CanvasCaptureMediaStream, at Chromium/Chrome requestFrame() is a method of CanvasCaptureMediaStreamTrack.
Assignee: nobody → eshepherd
This is now fixed, along with some other improvements being made.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
OK, actually, the real problem is that this entire interface is currently documented as CanvasCaptureMediaStream rather than CanvasCaptureMediaStreamTrack.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
OK, doing another pass to fix the names of this interface. Pages updated (ones formerly under CanvasCaptureMediaStream have moved to be CanvasCaptureMediaStreamTrack):

https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream
https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack
https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas
https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame

(Most updates include other improvements beyond just renames of the interface)
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Please don't just break the compat table!

https://github.com/mdn/browser-compat-data/blob/master/api/CanvasCaptureMediaStream.json needs updating as well in this case.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Submitted https://github.com/mdn/browser-compat-data/pull/2372 to update BCD. Sorry about that!
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED

Is this really fixed?

At Firefox 65 requestFrame is still a method of CanvasCaptureMediaStream not MediaStreamTrack per the specification https://w3c.github.io/mediacapture-fromelement/#dom-canvascapturemediastreamtrack-requestframe

You need to log in before you can comment on or make changes to this bug.