Skip to content

Commit 69ff342

Browse files
committed
rm pin current video from video buttons
1 parent 3c97868 commit 69ff342

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

frontend/src/ChatVideo.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<img v-show="presenterAvatarIsSet && presenterVideoMute" @click.self="onClick()" class="video-presenter-element" :src="presenterData?.avatar"/>
77
<p v-bind:class="[speaking ? 'presenter-element-caption-speaking' : '', 'presenter-element-caption', 'inline-caption-base']">{{ presenterData?.userName ? presenterData?.userName : getLoadingMessage() }} <v-icon v-if="presenterAudioMute">mdi-microphone-off</v-icon></p>
88

9-
<VideoButtons v-if="!isMobile()" @requestFullScreen="onButtonsFullscreen" @requestPinCurrentVideo="onRequestPinCurrentVideo" v-show="showControls"/>
9+
<VideoButtons v-if="!isMobile()" @requestFullScreen="onButtonsFullscreen" v-show="showControls"/>
1010

1111
<PresenterContextMenu ref="contextMenuRef" :userName="presenterUserName"/>
1212

@@ -18,7 +18,7 @@
1818
<VideoButtons v-if="!isMobile() && !shouldShowPresenter" @requestFullScreen="onButtonsFullscreen" v-show="showControls"/>
1919
</pane>
2020
</splitpanes>
21-
<VideoButtons v-if="isMobile()" @requestFullScreen="onButtonsFullscreen" @requestPinCurrentVideo="onRequestPinCurrentVideo" v-show="showControls"/>
21+
<VideoButtons v-if="isMobile()" @requestFullScreen="onButtonsFullscreen" v-show="showControls"/>
2222
</template>
2323

2424
<script>
@@ -944,9 +944,6 @@ export default {
944944
getPresenterVideoStreamId() {
945945
return this.presenterData?.videoStream.trackSid
946946
},
947-
onRequestPinCurrentVideo() {
948-
bus.emit(PIN_VIDEO, this.getPresenterVideoStreamId())
949-
},
950947
},
951948
computed: {
952949
...mapStores(useChatStore),

frontend/src/VideoButtons.vue

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
<v-icon size="x-large">mdi-monitor-share</v-icon>
1414
</v-btn>
1515
</template>
16-
<template v-if="canPinCurrentVideo">
17-
<v-btn variant="plain" tile icon @click.stop.prevent="pinCurrentVideo()" :title="$vuetify.locale.t('$vuetify.pin_video')">
18-
<v-icon size="x-large">mdi-pin</v-icon>
19-
</v-btn>
20-
<v-btn v-if="chatStore.pinnedTrackSid" variant="plain" tile icon @click.stop.prevent="unpinCurrentVideo()" :title="$vuetify.locale.t('$vuetify.unpin_video')">
21-
<v-icon size="x-large">mdi-pin-off-outline</v-icon>
22-
</v-btn>
23-
</template>
2416

2517
<v-btn variant="plain" tile icon @click.stop.prevent="onEnterFullscreen" :title="$vuetify.locale.t('$vuetify.fullscreen')"><v-icon size="x-large">mdi-arrow-expand-all</v-icon></v-btn>
2618

@@ -64,7 +56,7 @@ import {mapStores} from "pinia";
6456
import {useChatStore} from "@/store/chatStore.js";
6557
import videoPositionMixin from "@/mixins/videoPositionMixin.js";
6658
import {stopCall} from "@/utils.js";
67-
import bus, {ADD_SCREEN_SOURCE, ADD_VIDEO_SOURCE_DIALOG, OPEN_SETTINGS, UN_PIN_VIDEO} from "@/bus/bus.js";
59+
import bus, {ADD_SCREEN_SOURCE, ADD_VIDEO_SOURCE_DIALOG, OPEN_SETTINGS} from "@/bus/bus.js";
6860
import {
6961
positionItems,
7062
setStoredPresenter, setStoredVideoMessages, setStoredVideoMiniatures,
@@ -108,9 +100,6 @@ export default {
108100
enableToggleMiniatures() {
109101
return this.chatStore.presenterEnabled && this.isPresenterEnabled()
110102
},
111-
canPinCurrentVideo() {
112-
return this.pinningIsAvailable()
113-
},
114103
},
115104
methods: {
116105
doMuteAudio(requestedState) {
@@ -171,12 +160,6 @@ export default {
171160
this.chatStore.videoMessagesEnabled = newValue;
172161
setStoredVideoMessages(newValue);
173162
},
174-
pinCurrentVideo() {
175-
this.$emit("requestPinCurrentVideo");
176-
},
177-
unpinCurrentVideo() {
178-
bus.emit(UN_PIN_VIDEO)
179-
},
180163
}
181164
}
182165
</script>

0 commit comments

Comments
 (0)