TUICallKit
and provides two schemes for customization: slight UI adjustment and custom UI implementation.TUICallKit
is a component with UI audio and video call, For easy source code adjustment, it is recommended to copy the component directly into your project (source code is TypeScript)Vue3 + TypeScript
and @tencentcloud/call-uikit-vue
version number is 3.2.2 or later projects. If you are using other languages or technology stacks, please use the Custom UI Implementation.npm install @tencentcloud/call-uikit-vue
mkdir -p ./src/components/TUICallKit && cp -r ./node_modules/@tencentcloud/call-uikit-vue/* ./src/components/TUICallKit
xcopy .\\node_modules\\@tencentcloud\\call-uikit-vue .\\src\\components\\TUICallKit /i /e
TUICallKit
needs to be brought in from a local file instead, as shown in the code below.import { TUICallKit, TUICallKitServer, TUICallType } from "./components/TUICallKit/src/index";
Cannot find module '../package.json'
error, it is because the TUICallKit references a JSON file. You can add the relevant configuration in tsconfig.json
, for example:{"compilerOptions": {"resolveJsonModule": true}}
.eslintignore
file in the root directory of your project, for example:# .eslintignoresrc/components/TUICallKit
TUICallKit/Components/assets
folder to customize the color tone and style of the icons in your application. Make sure you do not change the filenames. Serial number | Resource Path |
1 | /TUICallKit/Components/assets/button/camera-close.svg |
2 | /TUICallKit/Components/assets/button/microphone-open.svg |
3 | /TUICallKit/Components/assets/button/speaker-open.svg |
4 | /TUICallKit/Components/assets/button/desktop/inviteUser.svg |
5 | /TUICallKit/Components/assets/button/hangup.svg |
6 | /TUICallKit/Components/assets/button/desktop/minimize.svg |
7 | /TUICallKit/Components/assets/button/desktop/fullScreen.svg |
Serial number | Resource Path |
1 | /TUICallKit/Components/assets/button/mobile/minimize.svg |
2 | /TUICallKit/Components/assets/button/hangup.svg |
3 | /TUICallKit/Components/assets/button/accept.svg |
4 | /TUICallKit/Components/assets/button/microphone-open.svg |
5 | /TUICallKit/Components/assets/button/speaker-open.svg |
6 | /TUICallKit/Components/assets/button/camera-close.svg |
7 | /TUICallKit/Components/assets/button/switchCamera.svg |
TUICallKit/src/TUICallService/assets/
folder.Filename | Description |
phone_dialing.mp3 | The sound of making a call |
phone_ringing.mp3 | The ringtone for incoming calls |
TUICallKit
are implemented based on the TUICallEngine
SDK, which does not include UI elements. You can use TUICallEngine
to implement your own UI. For detailed directions, refer to the documents below:
Was this page helpful?