Skip to main content

Video bubble

This element handles the display and the play/pause functionality for an individual video. This element uses the native embed video element.

Properties

NameTypeDescription
srcstringURL of the video file
autoPlaybooleanWhen set to true, the video will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.
loopbooleanWhen set to true, the video player will automatically seek back to the start upon reaching the end of the audio.
mutedbooleanwhen set to true, the audio will be initially silenced.
posterstringA URL for an image to be shown while the video is downloading
videoStyleVideoBubbleStyleStyling properties and values of the element

VideoBubbleStyle

Styling properties and values of the element

NameDescription
widthSets the width of the element
heightSets the height of the element
borderSets the border of the element
borderRadiusSets the border radius of the element
backgroundSets all background style properties at once, such as color, image, origin and size, or repeat method. Reference link

Usage

import '@cometchat/uikit-elements';//import the web component package.

const videoURL = "https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4";

//use the element
<cometchat-video-bubble src={videoURL}></cometchat-video-bubble>