MediaStreamTrackProcessor.readable

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The readable property of the MediaStreamTrackProcessor interface returns a ReadableStream.

Value

Examples

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

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

BCD tables only load in the browser