Custom Source
class CustomSource
Deprecated
Switch over either the CustomAudioSource or the CustomVideoSource classes
The CustomSource class serves as a customizable source for capturing and providing both video and audio data. The class is useful for using video filters, audio noise suppression, or customized audio.
Properties
Functions
Link copied to clipboard
Injects an audio frame which content depends on the developer. For performance reasons, prefer recycling the AudioFrame to make sure not too many allocations are performed over time
Link copied to clipboard
A callback that is triggered whenever a new video frame is available.
Link copied to clipboard
Defines and creates a new audio track to send it to a Publisher's addTrack().
Link copied to clipboard
Starts capturing video.
Link copied to clipboard
Stops the underlying audio and video tracks and informs the SDK to stop any pending operations related to this custom source.