Optional
bitrateThe maximum bitrate of sending the video track (Kbps).
Optional
bitrateThe minimum bitrate of sending the video track (Kbps).
Optional
frameSince
4.17.1
Frame rate of the video (fps).
You can pass a number
, or a constraint such as { max: 30, min: 5 }
.
For details about the constraint, see [ConstrainLong]ConstrainLong.
Optional
heightSince
4.17.1
Height of the video.
You can pass a number
, or a constraint such as { max: 1280, min: 720 }
.
For more details about the constraint, see [ConstrainLong]ConstrainLong.
Your MediaStreamTrack object.
Optional
optimizationSince
4.0.0
Transmission optimization mode. Whether to prioritize video quality or smoothness:
"detail"
: Prioritizes video quality."motion"
: Prioritizes video smoothness.Note: This method is only supported on Chrome.
Optional
widthSince
4.17.1
Width of the video.
You can pass a number
, or a constraint such as { max: 1280, min: 720 }
.
For more details about the constraint, see [ConstrainLong]ConstrainLong.
Configurations for the custom video track. Set these configurations when calling [AgoraRTC.createCustomVideoTrack]createCustomVideoTrack.