|
@@ -110,7 +110,7 @@ export const handleMessageHook = (message, state) => {
|
|
|
message.contentType === Constant.ACCEPT_AUDIO_ONLINE
|
|
|
) {
|
|
|
console.log("音频在线:接听")
|
|
|
- const video = message.contentType == ACCEPT_AUDIO_ONLINE
|
|
|
+ const video = message.contentType == Constant.ACCEPT_AUDIO_ONLINE
|
|
|
startAudioOnline(video);
|
|
|
return;
|
|
|
}
|
|
@@ -204,6 +204,7 @@ export const handleMessageHook = (message, state) => {
|
|
|
|
|
|
// 创建呼叫:开启语音电话
|
|
|
const startAudioOnline = (video) => {
|
|
|
+ const rtcStore = useWebRTCStore();
|
|
|
// 初始化webrtc连接
|
|
|
rtcStore.initConnection(true);
|
|
|
|