MediaControllerLimited availability
The playback of multiple <video> or <audio> elements can be coordinated by a MediaController instance, for example to synchronize a sign-language interpreter track with the main video track.
Not yet supported in all major browsers — check the table and provide a fallback.
Discouraged: The MediaController API was dropped from the specification due to lack of implementations.
Browser support
DesktopChrome
✕Not supportedup to 155
Current: 155Edge
✕Not supportedup to 154
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27How to use
Not supported in Chrome, Edge, Firefox, Chrome Android, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: controller.
Feature detection
JS · check before using
if ("MediaController" in globalThis) {
// MediaController is available
} else {
// load a polyfill or use a fallback
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (17). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLMediaElement.controller | ✕ | ✕ | ✕ | 6 | ✕ | ✕ | 6 |
| MediaController | ✕ | ✕ | ✕ | 6 | ✕ | ✕ | 6 |
| MediaController.MediaController | ✕ | ✕ | ✕ | 6 | ✕ | ✕ | 6 |
| MediaController.buffered | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.currentTime | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.defaultPlaybackRate | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.duration | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.muted | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.pause | ✕ | ✕ | ✕ | 6 | ✕ | ✕ | 6 |
| MediaController.paused | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.play | ✕ | ✕ | ✕ | 6 | ✕ | ✕ | 6 |
| MediaController.playbackRate | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.playbackState | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.played | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.seekable | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.unpause | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |
| MediaController.volume | ✕ | ✕ | ✕ | 7 | ✕ | ✕ | 7 |