mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
fix: no voice in speech page; custom personal page redirect notworking. feat: sync sroll bar between question display page an obs component
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { useAccount } from '@/api/account';
|
||||
import { MasterRTCClient, SlaveRTCClient } from '@/data/RTCClient';
|
||||
import { BaseRTCClient, MasterRTCClient, SlaveRTCClient } from '@/data/RTCClient';
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient';
|
||||
import { useWebRTC } from '@/store/useRTC';
|
||||
import { NButton, NInput, NSpin } from 'naive-ui';
|
||||
@@ -19,11 +19,11 @@ const isMaster = computed(() => {
|
||||
const dc = useDanmakuClient()
|
||||
const customCss = ref('')
|
||||
|
||||
let rtc: Ref<MasterRTCClient | SlaveRTCClient | undefined> = ref()
|
||||
let rtc= useWebRTC()
|
||||
const danmujiRef = ref()
|
||||
|
||||
function mount() {
|
||||
rtc.value = useWebRTC().Init(isMaster.value ? 'master' : 'slave')
|
||||
async function mount() {
|
||||
rtc.Init(isMaster.value ? 'master' : 'slave')
|
||||
dc.initClient()
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user