Add name on screen sharing
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
This commit is contained in:
parent
15be76655f
commit
31b7b5aa08
@ -30,10 +30,11 @@
|
|||||||
{#if $statusStore === "error"}
|
{#if $statusStore === "error"}
|
||||||
<div class="rtc-error" />
|
<div class="rtc-error" />
|
||||||
{/if}
|
{/if}
|
||||||
{#if $streamStore === null}
|
{#if $streamStore !== null}
|
||||||
<i style="background-color: {getColorByString(name)};">{name}</i>
|
|
||||||
{:else}
|
|
||||||
<!-- svelte-ignore a11y-media-has-caption -->
|
<!-- svelte-ignore a11y-media-has-caption -->
|
||||||
|
<i class="container">
|
||||||
|
<span style="background-color: {getColorByString(name)};">{name}</span>
|
||||||
|
</i>
|
||||||
<video
|
<video
|
||||||
use:srcObject={$streamStore}
|
use:srcObject={$streamStore}
|
||||||
autoplay
|
autoplay
|
||||||
@ -48,5 +49,10 @@
|
|||||||
video {
|
video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
i {
|
||||||
|
span {
|
||||||
|
padding: 2px 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<!-- {#if !$constraintStore || $constraintStore.video === false} -->
|
<!-- {#if !$constraintStore || $constraintStore.video === false} -->
|
||||||
<i class="container">
|
<i class="container">
|
||||||
<span style="background-color: {getColorByString(name)};">{peer.userName}</span>
|
<span style="background-color: {getColorByString(name)};">{name}</span>
|
||||||
</i>
|
</i>
|
||||||
<div class="woka-icon {($constraintStore && $constraintStore.video !== false) || minimized ? '' : 'no-video'}">
|
<div class="woka-icon {($constraintStore && $constraintStore.video !== false) || minimized ? '' : 'no-video'}">
|
||||||
<Woka userId={peer.userId} placeholderSrc={""} />
|
<Woka userId={peer.userId} placeholderSrc={""} />
|
||||||
|
Loading…
Reference in New Issue
Block a user