screencast as overlay, load when webrtc unstable.

This commit is contained in:
Miroslav Šedivý 2022-03-10 23:46:30 +01:00
parent e61b04671b
commit cee6332587

View File

@ -1,10 +1,10 @@
<template>
<div ref="component" class="neko-component">
<div ref="container" class="neko-container">
<video v-show="!screencast || !screencastReady" ref="video" :autoplay="autoplay" :muted="autoplay" playsinline />
<video ref="video" :autoplay="autoplay" :muted="autoplay" playsinline />
<neko-screencast
v-show="screencast && screencastReady"
:enabled="screencast"
:enabled="screencast || !state.connection.webrtc.stable"
:api="api.room"
@imageReady="screencastReady = $event"
/>
@ -57,7 +57,7 @@
width: 100%;
height: 100%;
display: flex;
background: #000;
background: transparent !important;
&::-webkit-media-controls {
display: none !important;