2021-06-11 11:29:36 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import {screenSharingStreamStore} from "../../Stores/PeerStore";
|
|
|
|
import {DivImportance} from "../../WebRtc/LayoutManager";
|
|
|
|
import Peer from "./Peer.svelte";
|
|
|
|
import {layoutStore} from "../../Stores/LayoutStore";
|
2021-06-15 14:45:01 +02:00
|
|
|
import {videoFocusStore} from "../../Stores/VideoFocusStore";
|
2021-06-11 11:29:36 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="video-overlay">
|
|
|
|
<div class="main-section">
|
2021-06-15 14:45:01 +02:00
|
|
|
{#each [...$layoutStore.values()] as peer (peer.uniqueId)}
|
|
|
|
{#if $videoFocusStore && peer === $videoFocusStore }
|
|
|
|
<Peer peer={peer}></Peer>
|
|
|
|
{/if}
|
2021-06-11 11:29:36 +02:00
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
<aside class="sidebar">
|
2021-06-15 14:45:01 +02:00
|
|
|
{#each [...$layoutStore.values()] as peer (peer.uniqueId)}
|
|
|
|
{#if peer !== $videoFocusStore }
|
|
|
|
<Peer peer={peer}></Peer>
|
|
|
|
{/if}
|
2021-06-11 11:29:36 +02:00
|
|
|
{/each}
|
|
|
|
</aside>
|
|
|
|
<div class="chat-mode three-col" style="display: none;">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.video-overlay {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
</style>
|