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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
readable |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.