createCustomVideoTrack abstract method

Future<int> createCustomVideoTrack()

Creates a custom video track.

To publish a custom video source, see the following steps: Call this method to create a video track and get the video track ID. Call joinChannel to join the channel. In ChannelMediaOptions, set customVideoTrackId to the video track ID that you want to publish, and set publishCustomVideoTrack to true. Call pushVideoFrame and specify videoTrackId as the video track ID set in step 2. You can then publish the corresponding custom video source in the channel.

Returns If the method call is successful, the video track ID is returned as the unique identifier of the video track. If the method call fails, a negative value is returned.

Implementation

Future<int> createCustomVideoTrack();