TextTrack: cuechange event

The cuechange event fires when a TextTrack has changed the currently displaying cues.

Bubbles No
Cancelable No
Interface Event
Event handler oncuechange

Examples

You can use the cuechange event in an addEventListener method:

track.addEventListener('cuechange', function () {
 let cues = track.activeCues;  // array of current cues
});

Or use the oncuechange event handler property:

track.oncuechange = function () {
  let cues = track.activeCues; // array of current cues
}

Specifications

Specification Status
HTML Living Standard
The definition of 'cuechange' in that specification.
Living Standard

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
cuechange eventChrome Full support YesEdge Full support 12Firefox Full support 31IE ? Opera ? Safari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile No support NoFirefox Android Full support 31Opera Android No support NoSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Contributors to this page: fscholz, mdnwebdocs-bot, albinlarsson, teoli, rillian
Last updated by: fscholz,