|
@@ -167,6 +167,7 @@ export function initListener(vue) {
|
|
|
console.log('监听通知移除流事件');
|
|
|
vue.connect = false;
|
|
|
vue.remoteStreamType = -1;
|
|
|
+ vue.inviteImageURL = '';
|
|
|
});
|
|
|
|
|
|
// 停止订阅流
|
|
@@ -183,11 +184,18 @@ export function initListener(vue) {
|
|
|
rtc.on('inviteUp', uid => {
|
|
|
console.log('监听自己被邀请事件', uid);
|
|
|
vue.callLoading = true;
|
|
|
+ vue.invite = true;
|
|
|
});
|
|
|
|
|
|
rtc.on('mcDown', () => {
|
|
|
closeVideo('picture');
|
|
|
vue.connect = false;
|
|
|
+ vue.invite = false;
|
|
|
+ });
|
|
|
+
|
|
|
+ rtc.on('videoModeChange', data => {
|
|
|
+ console.log('连麦音视频模式更新成功监听回调', data.settings.video_mode);
|
|
|
+ vue.roomInfo.video_mode = data.settings.video_mode;
|
|
|
});
|
|
|
|
|
|
rtc.on('createLocalStream', () => {
|
|
@@ -249,5 +257,9 @@ export function initListener(vue) {
|
|
|
if (data.type === 'handsDown-load' && data.uid === vue.room_user_id) {
|
|
|
vue.callLoading = false;
|
|
|
}
|
|
|
+
|
|
|
+ if (data.type === 'inviteImage') {
|
|
|
+ vue.inviteImageURL = data.imageURL;
|
|
|
+ }
|
|
|
});
|
|
|
}
|