CometChatSoundManager
provides functionalities for managing audio playback for incoming / outgoing messages in 1:1 or group chat.
Name | Description |
---|---|
incomingMessage | The audio resource for an incoming message in an active chat |
outgoingMessage | The audio resource for an outgoing message |
incomingMessageFromOther | The audio resource for an incoming message received in an inactive chat |
incomingCall | The audio resource for an incoming call in an active 1:1 or group chat |
outgoingCall | The audio resource for outgoing call in an active 1:1 or group chat |
CometChatSoundManager.play
method plays the in-built sounds audio resources for the above mentioned enum cases. It also allows for customisation of the audio resources. You can pass a mp3 file asset path of your choice.
Name | Description |
---|---|
play | This method plays the above mentioned audio resources. |
CometChatSoundManager.pause
method pauses the ongoing audio resource for calls or messages
Name | Description |
---|---|
pause | This method pauses the already being played audio resource. |