|
@@ -227,7 +227,7 @@
|
|
|
const audioMuted = computed(() => unref(selfRoomStatus)?.IsMuted);
|
|
|
const { globalVideoEnable } = useRtcSdk();
|
|
|
const hosterhasVideo = computed(() => rtcStore.videoDeviceId?.length > 0);
|
|
|
-
|
|
|
+ const { isUsingMiniApp } = useMiniApp();
|
|
|
const { muteVideoLeader } = useRtcSdk();
|
|
|
let roomCounter = ref(-1);
|
|
|
let roomCount: NodeJS.Timeout;
|
|
@@ -236,6 +236,7 @@
|
|
|
|
|
|
watchEffect(() => {
|
|
|
console.log('sceneList', sceneList);
|
|
|
+ console.log('isUsingMiniApp', unref(isUsingMiniApp));
|
|
|
});
|
|
|
watch(
|
|
|
() => currentSession,
|
|
@@ -527,7 +528,6 @@
|
|
|
};
|
|
|
|
|
|
const handleCreateShare = () => {
|
|
|
- const { isUsingMiniApp } = useMiniApp();
|
|
|
const search = new URLSearchParams();
|
|
|
search.set('isTour', '0');
|
|
|
// search.set('vruserId', `user_${Math.floor(Math.random() * 100000000)}`);
|
|
@@ -579,15 +579,17 @@
|
|
|
const handleShowCamera = () => {
|
|
|
const { localStream, muteVideoLeader } = useRtcSdk();
|
|
|
const { socket } = useSocket();
|
|
|
- socket.emit('action', {
|
|
|
- type: 'sync-camera',
|
|
|
- data: {
|
|
|
- show: true,
|
|
|
- userId: rtcStore.userId,
|
|
|
- },
|
|
|
- });
|
|
|
- muteVideoLeader.value = false;
|
|
|
- localStream && localStream.unmuteVideo();
|
|
|
+ if (!unref(isUsingMiniApp)) {
|
|
|
+ socket.emit('action', {
|
|
|
+ type: 'sync-camera',
|
|
|
+ data: {
|
|
|
+ show: true,
|
|
|
+ userId: rtcStore.userId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ localStream && localStream.unmuteVideo();
|
|
|
+ muteVideoLeader.value = false;
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|