Skip to main content
Version: v4

Audio Bubble

CometChatAudioBubble is the content view for a MediaMessage if the media sent is an audio.

Properties

PropertiesTypeDescription
audioUrlstringthe path of the image to display
titlestringa text to display as name of the audio file
subtitlestringa text to display below the name of the audio file
styleAudioBubbleStyleused to customize appearance of this widget
playIconImageTypecustomize the icon to display to play the audio
pauseIconImageTypecustomize the icon to display to pause the audio
onPressFunctionAn action to be performed on pressing the icon

AudioBubbleStyle

attributes to customize appearance of this widget.

PropertiesTypeDescription
titleFontFontStyleused to set style of the name of the audio file
iconTintstringused to provide colour to the audio play icon
subtitleFontFontStyleused to set font style of subtitle
subtitleColorstringused to set subtitle colour
titleFontFontStyleused to set font style of title
titleColorstringused to provide colour to the title
backgroundColorstringSets the background colour for Avatar
borderRadiusnumberSets the corner radius for Avatar
borderBorderStyleInterfaceSets the border styles for Avatar
heightnumber | stringSets the height for Avatar
widthnumber | stringSets the width for Avatar

Usage

<CometChatAudioBubble
audioUrl='https://data-us.cometchat.io/2379614bd4db65dd/media/1682517916_1406731591_130612180fb2e657699814eb52817574.mp3'
title='Sample Audio'
/>