Closed
Bug 1446864
Opened 7 years ago
Closed 7 years ago
requestFrame is a method of CanvasCaptureMediaStreamTrack
Categories
(Developer Documentation Graveyard :: API: WebRTC, defect, P1)
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();
Reporter | ||
Comment 1•7 years ago
|
||
Firefox 60
"requestFrame" in canvasStream // true
"requestFrame" in canvasStream.getVideoTracks()[0] // false
Chromium 64
"requestFrame" in canvasStream // false
"requestFrame" in canvasStream.getVideoTracks()[0] // true
Reporter | ||
Comment 2•7 years ago
|
||
Include note that at Firefox requestFrame() is a method of CanvasCaptureMediaStream, at Chromium/Chrome requestFrame() is a method of CanvasCaptureMediaStreamTrack.
Updated•7 years ago
|
Assignee: nobody → eshepherd
Assignee | ||
Comment 3•7 years ago
|
||
This is now fixed, along with some other improvements being made.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•7 years ago
|
||
OK, actually, the real problem is that this entire interface is currently documented as CanvasCaptureMediaStream rather than CanvasCaptureMediaStreamTrack.
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
Assignee | ||
Comment 5•7 years ago
|
||
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: 7 years ago → 7 years ago
Resolution: --- → FIXED
Comment 6•7 years ago
|
||
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 → ---
Assignee | ||
Comment 7•7 years ago
|
||
Submitted https://github.com/mdn/browser-compat-data/pull/2372 to update BCD. Sorry about that!
Assignee | ||
Updated•7 years ago
|
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•6 years ago
|
||
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.
Description
•