getter for outputMediaStream
.
outputMediaStream
is returned by internal VideoFrameProcessorPipeline.
It is possible, but unlikely, that this accessor will throw.
Add an observer to receive notifications about lifecycle events. See DefaultVideoTransformDeviceObserver for details. If the observer has already been added, this method call has no effect.
chooseNewInnerDevice
preserves the inner pipeline and processing state and switches
the inner device. Since the pipeline and processors are shared with the new transform device
only one transform device can be used.
Return the inner device as provided during construction.
onOutputStreamDisconnect is called when device controller wants to detach the transform device. The default behavior is to stop the output media stream and release the input the media stream. If the input media stream is the provided device, it will not be released.
processingDidFailToStart
will be called when VideoFrameProcessorPipeline could not start streaming due to runtime errors.
processingDidStart
will be called when VideoFrameProcessorPipeline starts streaming.
processingDidStop
will be called when VideoFrameProcessorPipeline stops streaming expectedly.
processingLatencyTooHigh
will be called when the execution of VideoFrameProcessorPipeline slows the frame rate down by half.
Remove an existing observer. If the observer has not been previously. this method call has no effect.
Dispose of the inner workings of the transform device, including pipeline and processors.
stop
can only be called when the transform device is not used by device controller anymore.
After stop
is called, all transform devices which share the pipeline must be discarded.
Create VideoFrameProcessorPipeline if there is not a existing one and start video processors.
Returns output MediaStream
produced by VideoFrameProcessorPipeline.
Generated using TypeDoc
DefaultVideoTransformDevice is an augmented VideoInputDevice. It transform the input Device with an array of VideoFrameProcessor to produce a
MediaStream
.