@@ -5,11 +5,10 @@ import { onMounted, ref } from 'vue'
5
5
import VideoComponent from ' /@/components/Main/MainView/QallView/VideoTrack.vue'
6
6
import AudioComponent from ' /@/components/Main/MainView/QallView/AudioTrack.vue'
7
7
import DanmakuContainer from ' ./DanmakuContainer.vue'
8
- import CallControlButton from ' ./CallControlButton.vue'
9
8
import CallControlButtonSmall from ' ./CallControlButtonSmall.vue'
9
+ import CallControlButton from ' ./CallControlButton.vue'
10
10
import ScreenShareComponent from ' ./ScreenShareComponent.vue'
11
11
import { LocalTrackPublication } from ' livekit-client'
12
- import ChannelViewContentMain from ' ../ChannelView/ChannelViewContent/ChannelViewContentMain.vue'
13
12
import QallMessageView from ' ./QallMessageView.vue'
14
13
15
14
const {
@@ -26,20 +25,10 @@ const isMicOn = ref(true)
26
25
const isCameraOn = ref (false )
27
26
const isScreenSharing = ref (false )
28
27
29
- const micIcon = ref (
30
- isMicOn .value
31
- ? ' /@/assets/icons/mic.svg?url'
32
- : ' /@/assets/icons/mic_off.svg?url'
33
- )
34
- const cameraIcon = ref (
35
- isCameraOn .value
36
- ? ' /@/assets/icons/videocam.svg?url'
37
- : ' /@/assets/icons/videocam_off.svg?url'
38
- )
28
+ const micIcon = ref (isMicOn .value ? ' microphone' : ' microphone-off' )
29
+ const cameraIcon = ref (isCameraOn .value ? ' vide' : ' video-off' )
39
30
const screenShareIcon = ref (
40
- isScreenSharing .value
41
- ? ' /@/assets/icons/stop_screen_share.svg?url'
42
- : ' /@/assets/icons/screen_share.svg?url'
31
+ isScreenSharing .value ? ' stop-screen-share' : ' screen-share'
43
32
)
44
33
45
34
const toggleAudio = async () => {
@@ -56,9 +45,7 @@ const toggleAudio = async () => {
56
45
await trackInfo .trackPublication .track .unmute ()
57
46
}
58
47
isMicOn .value = ! isMicOn .value
59
- micIcon .value = isMicOn .value
60
- ? ' /@/assets/icons/mic.svg?url'
61
- : ' /@/assets/icons/mic_off.svg?url'
48
+ micIcon .value = isMicOn .value ? ' microphone' : ' microphone-off'
62
49
break
63
50
}
64
51
}
@@ -86,9 +73,7 @@ const toggleVideo = async () => {
86
73
}
87
74
isCameraOn .value = false
88
75
}
89
- cameraIcon .value = isCameraOn .value
90
- ? ' /@/assets/icons/videocam.svg?url'
91
- : ' /@/assets/icons/videocam_off.svg?url'
76
+ cameraIcon .value = isCameraOn .value ? ' video' : ' video-off'
92
77
} catch (err ) {
93
78
console .error (' Failed to toggle video:' , err )
94
79
}
@@ -114,8 +99,8 @@ const toggleScreen = async () => {
114
99
isScreenSharing .value = false
115
100
}
116
101
screenShareIcon .value = isScreenSharing .value
117
- ? ' /@/assets/icons/stop_screen_share.svg?url '
118
- : ' /@/assets/icons/screen_share.svg?url '
102
+ ? ' stop-screen-share '
103
+ : ' screen-share '
119
104
} catch (err ) {
120
105
console .error (' Failed to toggle screen sharing:' , err )
121
106
}
@@ -245,23 +230,26 @@ const backgroundType = ref<'original' | 'blur' | 'file' | 'screen'>('original')
245
230
<div :class =" $style.verticalBar" ></div >
246
231
<CallControlButton
247
232
:icon =" screenShareIcon"
248
- :on-click =" toggleScreen"
249
233
:is-on =" isScreenSharing"
234
+ :on-click =" toggleScreen"
235
+ :mdi =" false"
250
236
/>
251
237
<CallControlButton
252
238
:icon =" cameraIcon"
253
- :on-click =" toggleVideo"
254
239
:is-on =" isCameraOn"
240
+ :on-click =" toggleVideo"
241
+ :inverted =" !isCameraOn"
255
242
/>
256
243
<CallControlButton
257
244
:icon =" micIcon"
258
- :on-click =" toggleAudio"
259
245
:is-on =" isMicOn"
246
+ :on-click =" toggleAudio"
247
+ :inverted =" !isMicOn"
260
248
/>
261
249
<CallControlButton
262
- icon =" /@/assets/icons/call_end.svg?url"
263
- :on-click =" leaveQall"
250
+ icon =" phone-hangup"
264
251
:is-on =" false"
252
+ :on-click =" leaveQall"
265
253
/>
266
254
<div :class =" $style.verticalBar" ></div >
267
255
<div :class =" $style.smallButtonGroup" >
0 commit comments