Import { VideoDisplayMode, VideoResolution } from "@tencentcloud/call-uikit-react";<TUICallKitvideoDisplayMode={VideoDisplayMode.CONTAIN}videoResolution={VideoResolution.RESOLUTION_1080P} />
Import { VideoDisplayMode, VideoResolution } from "@tencentcloud/call-uikit-vue";<TUICallKit:videoDisplayMode="VideoDisplayMode.CONTAIN":videoResolution="VideoResolution.RESOLUTION_1080P" />
Attribute | Value | Description |
videoDisplayMode | VideoDisplayMode.CONTAIN | Prioritize displaying the entire video content. Scale the video dimensions proportionally until one side of the video window aligns with the viewport frame. If the video dimensions do not match the display viewport size, under the precondition of maintaining aspect ratio, scale the video to fill the viewport. A ring of black bars will appear around the video after scaling. |
| VideoDisplayMode.COVER | Prioritize filling the viewport. Scale the video dimensions proportionally until the entire viewport is filled by the video. If the video's aspect ratio differs from that of the display window, the video stream will fill the viewport by either cropping the periphery or stretching the image according to the viewport's ratio. |
| VideoDisplayMode.FILL | Ensure the viewport is filled while displaying all video content, but the aspect ratio of the video dimensions is not guaranteed to remain unchanged. The video width and height will be stretched to match the viewport dimensions. |
Video Profile | Resolution (W × H) | Frame Rate (fps) | Bitrate (Kbps) |
480p | 640 × 480 | 15 | 900 |
720p | 1280 × 720 | 15 | 1,500 |
1080p | 1920 × 1080 | 15 | 2,000 |
Was this page helpful?