Custom Stream Track
class CustomStreamTrack
Represents a custom audio or video track created via the VideoSDK factory methods.
Custom tracks allow you to configure encoding parameters, optimization mode, and multi-stream (simulcast) settings before passing them to the meeting.
Create custom tracks using:
- createCameraVideoTrack — for camera video
- createAudioTrack — for microphone audio
- createScreenShareVideoTrack — for screen-share video
Code Example:
val videoTrack = VideoSDK.createCameraVideoTrack(
"h720p_w1280p", // encoder config (resolution)
"front", // facing mode
CustomStreamTrack.VideoMode.MOTION, // optimization mode
true, // multi-stream (simulcast)
context, // Android context
null, // video device (default camera)
3, // max simulcast layers
BitrateMode.BALANCED // bitrate mode
)
meeting.enableWebcam(videoTrack)
Content copied to clipboard
See also
VideoSDK.createAudioTrack()
Properties
Link copied to clipboard
The encoder configuration string — such as
"h720p_w1280p" — controlling resolution and frame rate.Link copied to clipboard
The camera facing direction (
"front" or "back") for this track.Link copied to clipboard
The video content optimization mode hint for the encoder.
Link copied to clipboard
The preferred video codec for this track, or
null to use the SDK default.