Optional
bitrateThe maximum bitrate of sending the video track (Kbps).
Optional
bitrateThe minimum bitrate of sending the video track (Kbps).
Optional
frame
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
height
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
optimization
4.2.0
Sets the video transmission optimization mode.
You can call this method during a video call, a live streaming or screen sharing to dynamically change the optimization mode. For example, during the screen sharing, before you change the shared content from text to video, you can change the optimization mode from "detail"
to "motion"
to ensure smoothness in poor network conditions.
Note: This method supports Chrome only.
The video transmission optimization mode:
"balanced"
: Uses the default optimization mode."detail"
: Prioritizes video quality."motion"
: Since 4.21.0, the SDK prioritizes video smoothness.Optional
width
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]IAgoraRTC.createCustomVideoTrack.