@wanghongl/chat-box
v0.0.14-beta.51
Published
```js <ChatBox onStart={onStart} onError={(type, error) => { console.debug(type, error); }} /> ```
Readme
使用方法
<ChatBox
onStart={onStart}
onError={(type, error) => {
console.debug(type, error);
}}
/>const onStart = async (ref: ChatBoxImperativeHandle) => {
await ref?.startCall({
mode: 'video',
config: {
appId: 'xxxx',
appKey: 'xxxx',
conversationId: 'xxxxx',
platform: 'duix.com'
},
durationBalanceSec: 60 * 4,
sessionTimeOutSec: 0
});
};