The MediaStreamTrackProcessor() constructor creates a new MediaStreamTrackProcessor object which consumes a video MediaStreamTrack object's source and generates a stream of VideoFrames.
new MediaStreamTrackProcessor(options)optionsAn object with the following properties:
trackmaxBufferSize OptionalAn integer specifying the maximum number of media frames to be buffered.
In the following example a new MediaStreamTrackProcessor is created.
const trackProcessor = new MediaStreamTrackProcessor({ track: videoTrack });