mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
perf: 优化会议
This commit is contained in:
parent
a99c2f6944
commit
07254c9f27
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="meeting-warp" :class="{'meeting-full': $isSubElectron}">
|
<div class="meeting-warp">
|
||||||
<!-- 加入/新建 -->
|
<!-- 加入/新建 -->
|
||||||
<Modal
|
<Modal
|
||||||
v-model="addShow"
|
v-model="addShow"
|
||||||
@ -121,16 +121,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.meeting-full {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
import Player from "./player.vue";
|
import Player from "./player.vue";
|
||||||
@ -596,6 +586,9 @@ export default {
|
|||||||
this.localUser.uid = await this.agoraClient.join(options.appid, options.channel, options.token, options.uid)
|
this.localUser.uid = await this.agoraClient.join(options.appid, options.channel, options.token, options.uid)
|
||||||
// 创建本地音频和视频轨道
|
// 创建本地音频和视频轨道
|
||||||
await Promise.all(['audio', 'video'].map(async (trackType) => {
|
await Promise.all(['audio', 'video'].map(async (trackType) => {
|
||||||
|
if (!this.addData.tracks.includes(trackType)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const createTrack = trackType === 'audio' ? AgoraRTC.createMicrophoneAudioTrack : AgoraRTC.createCameraVideoTrack;
|
const createTrack = trackType === 'audio' ? AgoraRTC.createMicrophoneAudioTrack : AgoraRTC.createCameraVideoTrack;
|
||||||
const trackKey = `${trackType}Track`;
|
const trackKey = `${trackType}Track`;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
<template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user