MediaStreamTrackProcessor: readable property

The readable property of the MediaStreamTrackProcessor interface returns a ReadableStream.

Value

Examples

In the following example video frames from the ReadableStream are transformed.

js
const trackProcessor = new MediaStreamTrackProcessor({ track: videoTrack });
const trackGenerator = new MediaStreamTrackGenerator({ kind: "video" });

/* */

trackProcessor.readable
  .pipeThrough(transformer)
  .pipeTo(trackGenerator.writable);

Specifications

Specification
MediaStreamTrack Insertable Media Processing using Streams
# dom-mediastreamtrackprocessor-readable

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
readable

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support