Class: MediaProcessorConnector
Helper class implementing the media Media Processor Connector Interface. This class should always be created on the application main thread and it should be used by Vonage SDKs. An example can be found here.
Implements
Constructors
constructor
• new MediaProcessorConnector(vonageMediaProcessor)
- When running insertable streams on the main
MediaProcessorInterfaceshould be instance ofMediaProcessorclass. - When running insertable streams on WebWorker
MediaProcessorInterfaceshould be instance of bridge calss created by the user. Example can be found here
Parameters
| Name | Type | Description |
|---|---|---|
vonageMediaProcessor | MediaProcessorInterface | MediaProcessorInterface. |
Methods
setTrack
▸ setTrack(track): Promise<MediaStreamTrack>
Sets the media stream track instance to be processed.
Parameters
| Name | Type | Description |
|---|---|---|
track | MediaStreamTrack | MediaStreamTrack (audio or video) to be processed. |
Returns
Promise<MediaStreamTrack>
New track to be used.
Implementation of
MediaProcessorConnectorInterface.setTrack
destroy
▸ destroy(): Promise<void>
Stops the media processing being performed.
Returns
Promise<void>