CometChatSoundManager.play
method plays the default audio resource for incoming & outgoing calls. It also allows for customisation of the audio resources. You can pass a mp3 file asset path of your choice.
Here are the available methods for triggering sound playback:
play(sound: Sound)
: This method plays predefined sounds for various events such as incoming and outgoing calls and messages.
play(sound: Sound, filePath: string)
: This method is capable of playing a custom sound for a particular event by specifying the path to a custom MP3 file.
CometChatSoundManager.pause
method pauses the currently playing sound in the CometChatSoundManager.
pause()
: This method pauses any sound currently being played.