This commit is contained in:
yj 2025-02-25 17:16:45 +08:00
parent e4f57d216f
commit f4c8ee36b0
2 changed files with 12 additions and 0 deletions

View File

@ -648,6 +648,10 @@ Page({
} }
break; break;
// 共享人取消共享屏幕
case 'StopedSharedScreen':
this.getShowUser()
break;
} }
}) })
}, },

View File

@ -223,6 +223,13 @@ export const onSignalr = (callBack: Function) => {
contentString contentString
}) })
}); });
// 共享人取消共享屏幕
connection.on("StopedSharedScreen", (ScreenShareId) => {
callBack({
key: 'StopedSharedScreen',
ScreenShareId
})
});
} }
} }
export const onStop = async () => { export const onStop = async () => {
@ -282,6 +289,7 @@ export const offSignalr = () => {
connection.off('ModifyNickName'); connection.off('ModifyNickName');
connection.off('SetSpeaker'); connection.off('SetSpeaker');
connection.off('ReceivedOperation'); connection.off('ReceivedOperation');
connection.off('StopedSharedScreen');
} }
} }