trtc.startLocalVideo()
or trtc.updateLocalVideo()
method of the trtc object:// Specify video properties when startingawait trtc.startLocalVideo({option: { profile: '480p' }});// Dynamically adjust video properties during the callawait trtc.updateLocalVideo({option: { profile: '360p' }});
// Specify video properties when startingawait trtc.startLocalVideo({option: { profile: { width: 640, height: 480, frameRate: 15, bitrate: 900 /* kpbs */} }});// Dynamically adjust video properties during the callawait trtc.updateLocalVideo({option: { profile: { width: 640, height: 360, frameRate: 15, bitrate: 800 /* kpbs */} }});
Video Profile | Resolution (width x height) | Frame Rate (fps) | Bit Rate (kbps) |
120p | 160 x 120 | 15 | 200 |
180p | 320 x 180 | 15 | 350 |
240p | 320 x 240 | 15 | 400 |
360p | 640 x 360 | 15 | 800 |
480p | 640 x 480 | 15 | 900 |
720p | 1280 x 720 | 15 | 1500 |
1080p | 1920 x 1080 | 15 | 2000 |
1440p | 2560 x 1440 | 30 | 4860 |
4K | 3840 x 2160 | 30 | 9000 |
Was this page helpful?