This commit is contained in:
@@ -1,19 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="relative rounded overflow-hidden flex items-center justify-center"
|
class="group cursor-pointer hover:outline outline-primary relative rounded overflow-hidden flex items-center justify-center"
|
||||||
:class="{
|
|
||||||
'group cursor-pointer hover:outline outline-primary': !isMe,
|
|
||||||
}"
|
|
||||||
@click="watch"
|
@click="watch"
|
||||||
>
|
>
|
||||||
<video :srcObject="stream" muted autoplay />
|
<video :srcObject="stream" muted autoplay />
|
||||||
|
|
||||||
<PrimeTag
|
<PrimeTag
|
||||||
severity="secondary"
|
severity="secondary"
|
||||||
class="absolute bottom-2 text-sm opacity-70"
|
class="absolute bottom-2 text-sm opacity-70 group-hover:opacity-100"
|
||||||
:class="{
|
|
||||||
'group-hover:opacity-100': !isMe,
|
|
||||||
}"
|
|
||||||
rounded
|
rounded
|
||||||
>
|
>
|
||||||
{{ isMe ? 'You' : client.username }}
|
{{ isMe ? 'You' : client.username }}
|
||||||
@@ -37,9 +31,6 @@ const isMe = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function watch() {
|
function watch() {
|
||||||
if (isMe.value)
|
|
||||||
return
|
|
||||||
|
|
||||||
fullscreenVideo.show(props.stream)
|
fullscreenVideo.show(props.stream)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -40,7 +40,10 @@ export const useApp = createGlobalState(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const somebodyStreamingVideo = computed(() => {
|
const somebodyStreamingVideo = computed(() => {
|
||||||
return mediasoup.videoConsumers.value.length > 0 || mediasoup.shareConsumers.value.length > 0
|
return !!mediasoup.videoProducer.value
|
||||||
|
|| !!mediasoup.shareProducer.value
|
||||||
|
|| mediasoup.videoConsumers.value.length > 0
|
||||||
|
|| mediasoup.shareConsumers.value.length > 0
|
||||||
})
|
})
|
||||||
|
|
||||||
async function muteInput() {
|
async function muteInput() {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
:key="item.client.socketId"
|
:key="item.client.socketId"
|
||||||
:client="item.client"
|
:client="item.client"
|
||||||
:stream="item.stream"
|
:stream="item.stream"
|
||||||
@click="watch(item.stream)"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||||
"productName": "chad",
|
"productName": "chad",
|
||||||
"version": "0.2.24",
|
"version": "0.2.25",
|
||||||
"identifier": "xyz.koptilnya.chad",
|
"identifier": "xyz.koptilnya.chad",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../.output/public",
|
"frontendDist": "../.output/public",
|
||||||
|
|||||||
Reference in New Issue
Block a user