|
@@ -75,18 +75,21 @@ export const handleMessageHook = (message, state) => {
|
|
message.contentType === Constant.DIAL_AUDIO_ONLINE ||
|
|
message.contentType === Constant.DIAL_AUDIO_ONLINE ||
|
|
message.contentType === Constant.DIAL_VIDEO_ONLINE
|
|
message.contentType === Constant.DIAL_VIDEO_ONLINE
|
|
) {
|
|
) {
|
|
|
|
+ console.log("收到播号")
|
|
const rtcStore = useWebRTCStore();
|
|
const rtcStore = useWebRTCStore();
|
|
rtcStore.imSate = {
|
|
rtcStore.imSate = {
|
|
videoCallModal: true,
|
|
videoCallModal: true,
|
|
callName: message.fromUsername,
|
|
callName: message.fromUsername,
|
|
fromUserUuid: message.from,
|
|
fromUserUuid: message.from,
|
|
};
|
|
};
|
|
|
|
+ return
|
|
}
|
|
}
|
|
// 音频在线:取消
|
|
// 音频在线:取消
|
|
if (
|
|
if (
|
|
message.contentType === Constant.CANCELL_AUDIO_ONLINE ||
|
|
message.contentType === Constant.CANCELL_AUDIO_ONLINE ||
|
|
message.contentType === Constant.CANCELL_VIDEO_ONLINE
|
|
message.contentType === Constant.CANCELL_VIDEO_ONLINE
|
|
) {
|
|
) {
|
|
|
|
+ console.log("音频在线:取消")
|
|
const rtcStore = useWebRTCStore();
|
|
const rtcStore = useWebRTCStore();
|
|
rtcStore.videoCallModal = false;
|
|
rtcStore.videoCallModal = false;
|
|
return;
|
|
return;
|
|
@@ -96,6 +99,7 @@ export const handleMessageHook = (message, state) => {
|
|
message.contentType === Constant.REJECT_AUDIO_ONLINE ||
|
|
message.contentType === Constant.REJECT_AUDIO_ONLINE ||
|
|
message.contentType === Constant.REJECT_VIDEO_ONLINE
|
|
message.contentType === Constant.REJECT_VIDEO_ONLINE
|
|
) {
|
|
) {
|
|
|
|
+ console.log("音频在线:拒接")
|
|
const rtcStore = useWebRTCStore();
|
|
const rtcStore = useWebRTCStore();
|
|
rtcStore.videoCallModal = false;
|
|
rtcStore.videoCallModal = false;
|
|
return;
|
|
return;
|
|
@@ -105,6 +109,7 @@ export const handleMessageHook = (message, state) => {
|
|
message.contentType === Constant.ACCEPT_VIDEO_ONLINE ||
|
|
message.contentType === Constant.ACCEPT_VIDEO_ONLINE ||
|
|
message.contentType === Constant.ACCEPT_AUDIO_ONLINE
|
|
message.contentType === Constant.ACCEPT_AUDIO_ONLINE
|
|
) {
|
|
) {
|
|
|
|
+ console.log("音频在线:接听")
|
|
const video = message.contentType == ACCEPT_AUDIO_ONLINE
|
|
const video = message.contentType == ACCEPT_AUDIO_ONLINE
|
|
startAudioOnline(video);
|
|
startAudioOnline(video);
|
|
return;
|
|
return;
|
|
@@ -115,6 +120,7 @@ export const handleMessageHook = (message, state) => {
|
|
message.contentType >= Constant.DIAL_MEDIA_START &&
|
|
message.contentType >= Constant.DIAL_MEDIA_START &&
|
|
message.contentType <= Constant.DIAL_MEDIA_END
|
|
message.contentType <= Constant.DIAL_MEDIA_END
|
|
) {
|
|
) {
|
|
|
|
+ console.log("音频通话")
|
|
// 媒体通话处理
|
|
// 媒体通话处理
|
|
// dealMediaCall(message);
|
|
// dealMediaCall(message);
|
|
return;
|
|
return;
|