Commit dea3ed92 by qlintonger xeno

添加内容+7

parent f7a042f5
......@@ -16,7 +16,7 @@
</a-space>
</div>
<!-- 其余的视频窗口 -->
<video-slider class="mb-3 px-4" :id-set="userVideoContainerSet.onTopUserSet"></video-slider>
<video-slider class="mb-3 px-4" @handle-click="idChangedHere" :id-set="userVideoContainerSet.onTopUserSet"></video-slider>
<!-- 放大的窗口 -->
<video-tools :id="userVideoContainerSet.inCenter" class="px-4 flex flex-col flex-auto"></video-tools>
</div>
......@@ -34,6 +34,10 @@ onMounted(function () {
inCenterUserVideoId.value = allOtherChattersIdSet.value[0]
})
function idChangedHere(id: any) {
inCenterUserVideoId.value = id;
}
const userVideoContainerSet = computed(function () {
return {
onTopUserSet: allOtherChattersIdSet.value.filter((a: any) => a !== inCenterUserVideoId.value),
......
......@@ -53,7 +53,7 @@ import { isUserHost } from 'AnyR/states/chatChannelStates'
import { ref } from 'vue'
import { isCurrentUserMuted } from 'AnyR/states/chatChannelStates'
import { screenShareMetaData } from 'AnyR/states/chatChannelStates'
import {onMounted} from "vue";
import {onMounted, onUpdated} from "vue";
const ps = defineProps<{
id: any
......@@ -63,6 +63,10 @@ onMounted(function () {
AnyR?.agora.forceReplay(ps.id)
})
onUpdated(function () {
AnyR?.agora.forceReplay(ps.id)
})
const isVoiceChatOnly = ref(false)
const AnyR = useAnyR()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment