
An exported annotation video can repeat frames when its drawing loop and capture loop run at different rates. A capture track describes the canvas as a media source. The browser interface at the center of this behavior is CanvasCaptureMediaStreamTrack.
Where the device meets the page
Before you change an application to depend on CanvasCaptureMediaStreamTrack, define its smallest successful interaction. A good test has an observable starting condition and an outcome someone else can recognize. A screenshot of the controls establishes their appearance. Run the interaction to establish what the implementation actually delivers.
A small acceptance test for this feature
Draw a visible frame counter, request frames only after the final drawing operation where supported, and inspect the resulting recording one frame at a time.
Capture one baseline run before changing the device configuration. For the second run, change just the condition under investigation and repeat the same action. This is especially helpful when a browser update, a peripheral change and an application release all arrive in the same week.
Check the individual members
The compatibility record for a whole interface can predate a particular capability. The implementation decision for CanvasCaptureMediaStreamTrack depends on which member the application actually uses. Read the three desktop entries in order: Chrome, Firefox, then Safari.
canvas— version 51, no support recorded, version 11.requestFrame— version 51, no support recorded, version 11.
Which browsers record support for CanvasCaptureMediaStreamTrack?
The table gives a concrete reason to build a second route for this feature. Firefox desktop, Firefox on Android have no affirmative full-support version in this comparison. Check the detailed notes for the particular browser you ship and decide which part of the task should remain available.
| Browser family | First recorded standard entry |
|---|---|
| Chrome desktop | Version 51 |
| Firefox desktop | No support recorded |
| Safari on macOS | Version 11 |
| Chrome on Android | Version 51 |
| Firefox on Android | No support recorded |
| Safari on iOS | Version 11 |
Source snapshot: MDN Browser Compatibility Data 8.1.10, 19 November 2026. “Version” is the first recorded entry in this comparison. Individual methods can have later introduction dates.
What to ship alongside the feature
Use a timed capture fallback and keep the frame counter in test exports. Browser backgrounding can alter callback cadence.
typeof globalThis.CanvasCaptureMediaStreamTrack !== "undefined"This expression checks the interface or property in the current JavaScript environment. A positive answer does not run the device test above. Consult the member-level entries for canvas, requestFrame when any of them is a requirement.
Sources and further reading
- CanvasCaptureMediaStreamTrack reference and member details
- Interface specification
- MDN compatibility data, version 8.1.10
Cover photograph: Woman with digital movie camera in hand - 1731 by Jorge Royan. CC BY-SA 3.0. Cropped and typeset for this cover. The photograph illustrates the topic. This image adaptation uses the same share-alike license.
