Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface VideoFrameProcessorPipeline

VideoFrameProcessorPipeline facilitates video processing by transforming a input MediaStream with an array of VideoFrameProcessor to another MediaStream. It invokes the execution of VideoFrameProcessor in interval specified by framerate.

Hierarchy

  • VideoFrameProcessorPipeline

Implemented by

Index

Properties

framerate

framerate: number

The desired output frame rate.

Readonly outputMediaStream

outputMediaStream: MediaStream

The output MediaStream as a result of processor executions. It is possible, but unlikely, that this accessor will throw.

processors

processors: VideoFrameProcessor[]

Lists of processors to execute to produce output media stream.

Methods

addObserver

destroy

  • destroy(): void

getActiveOutputMediaStream

  • getActiveOutputMediaStream(): MediaStream

getInputMediaStream

  • getInputMediaStream(): Promise<MediaStream>

removeObserver

setInputMediaStream

  • setInputMediaStream(mediaStream: MediaStream): Promise<void>
  • Sets the input for the pipeline. An active MediaStream will start the processing steps. To stop the pipeline, null can be passed. To switch MediaSteam, the pipeline must be stopped first.

    Parameters

    • mediaStream: MediaStream

    Returns Promise<void>

stop

  • stop(): void

Generated using TypeDoc