API | Description |
call | Initiates a call |
answer | Answers the inbound call |
terminate | Ends the call |
sendDTMF | Sends Dual-Tone Multi-Frequency (DTMF) signals |
mute | Mutes. |
unmute | Unmutes. |
startPlayMusic | Starts playing music |
stopPlayMusic | Stops playing music |
// Initiate a call. Call the login API before initiating a call. tcccSDK.logintcccSDK.call({to: '134xxxx', // Contact number (required)remark: "xxx", // Number remarks, which will replace the number displayed in the call bar (optional)uui: "xxxx", // User-defined data (optional)}, (code,message) => {if (code == TcccErrorCode.ERR_NONE) {// Initiation succeeded} else {// Initiation failed}});// End the calltcccSDK.terminate();// Answer the calltcccSDK.answer((code,message) => {if (code == TcccErrorCode.ERR_NONE) {// Answer succeeded} else {// Answer failed}});
Was this page helpful?