제품 업데이트
Tencent Cloud 오디오/비디오 단말 SDK 재생 업그레이드 및 권한 부여 인증 추가
TRTC 월간 구독 패키지 출시 관련 안내
import { TUICallEvent } from '@trtc/call-engine-lite-js';let handleUserEnter = function(event) {console.log('TUICallEvent.USER_ENTER: ', event);};TUICallKitAPI.getTUICallEngineInstance().on(TUICallEvent.USER_ENTER, handleUserEnter);TUICallKitAPI.getTUICallEngineInstance().off(TUICallEvent.USER_ENTER, handleUserEnter);
beforeCalling: Executed prior to the commencement of the call.afterCalling: Executed upon the completion of the call.function App() {const handleBeforeCalling = () => {console.log("[TUICallKit Demo] beforeCalling");};const handleAfterCalling = () => {console.log("[TUICallKit Demo] afterCalling");};return (<TUICallKitbeforeCalling={handleBeforeCalling}afterCalling={handleAfterCalling} />)}
<template><TUICallKit:beforeCalling="handleBeforeCalling":afterCalling="handleAfterCalling" /></template><script setup>function handleBeforeCalling() {console.log("[TUICallKit Demo] beforeCalling");}function handleAfterCalling() {console.log("[TUICallKit Demo] afterCalling");}</script>
피드백