Skip to main content

Overview

The SoundManager is a helper class responsible for managing and playing various types of audio in the CometChat V6 UI Kit. This includes sound events for incoming and outgoing messages and calls.

Methods

Play Sound

The SoundManager plays pre-defined or custom sounds based on user interactions with the chat interface.

Stop Sound

Stop any sound currently being played:

Usage

Play a custom sound:

Sound Enum Reference

In V6, the CometChatConversations widget provides disableSoundForMessages and customSoundForMessages properties to control sound behavior at the widget level.