createCustomVideoTrack abstract method

Future<int> createCustomVideoTrack()

Creates a custom video track.

When you need to publish custom captured video in a channel, follow these steps: Call this method to create a video track and get the video track ID. When calling joinChannel to join a channel, set customVideoTrackId in ChannelMediaOptions to the video track ID you want to publish and set publishCustomVideoTrack to true. Call pushVideoFrame and specify videoTrackId as the video track ID from step 2 to publish the corresponding custom video source in the channel.

Returns If the method call succeeds, returns the video track ID as the unique identifier of the video track. If the method call fails, returns 0xffffffff. See Error Codes for details and resolution suggestions.

Implementation

Future<int> createCustomVideoTrack();