Skip to main content
Version: v4

Video Bubble

CometChatVideoBubble is the content view for a MediaMessage if the media sent is a video.

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

<!--use the element-->
<cometchat-video-bubble
[src]="videoURL"
></cometchat-video-bubble>