tencent cloud

All product documents
Chat
Last updated: 2024-05-08 11:37:24
Web&H5
Last updated: 2024-05-08 11:37:24
This document describes how to use the Definition ringtone and the silent incoming call ringtone feature.

Setting the Incoming Call Ringtone

Only local MP3 format file addresses can be passed in, ensuring that the file is accessible.
To reset to the default ringtone, pass in an empty string for filePath.
Import the ringtone file using the ES6 import method.
Note:
Vue v3.0.0 or later versions are supported
import filePath from '../public/ring.mp3';

try {
await TUICallKitServer.setCallingBell(filePath?: string);
} catch (error: any) {
alert(`[TUICallKit] setCallingBell API failed. Reason: ${error}`);
}

Silent incoming call ringtone

Enable/Disable incoming call ringtone.
After enabling, the incoming call ringtone will not be played when a call request is received.
Note:
Vue ≥ v3.1.2 is supported
try {
await TUICallKitServer.enableMuteMode(enable: boolean);
} catch (error: any) {
alert(`[TUICallKit] enableMuteMode API failed. Reason: ${error}`);
}


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon