Merge branch 'resizeSelect' of github.com:thecodingmachine/workadventure into resizeSelect
This commit is contained in:
commit
950c5ace3f
1 changed files with 19 additions and 52 deletions
|
@ -79,10 +79,13 @@
|
||||||
<section class="text-center">
|
<section class="text-center">
|
||||||
<h2>Turn on your camera and microphone</h2>
|
<h2>Turn on your camera and microphone</h2>
|
||||||
</section>
|
</section>
|
||||||
<div id="webRtcSetup" class="webrtcsetup">
|
{#if $localStreamStore.stream}
|
||||||
<img class="background-img" src={cinemaCloseImg} alt="" class:hide={$localStreamStore.stream}>
|
<video class="myCamVideoSetup" use:srcObject={$localStreamStore.stream} autoplay muted></video>
|
||||||
<video id="myCamVideoSetup" use:srcObject={$localStreamStore.stream} autoplay muted class:hide={!$localStreamStore.stream}></video>
|
{:else }
|
||||||
|
<div class="webrtcsetup">
|
||||||
|
<img class="background-img" src={cinemaCloseImg} alt="">
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
<HorizontalSoundMeterWidget stream={stream}></HorizontalSoundMeterWidget>
|
<HorizontalSoundMeterWidget stream={stream}></HorizontalSoundMeterWidget>
|
||||||
|
|
||||||
<section class="selectWebcamForm">
|
<section class="selectWebcamForm">
|
||||||
|
@ -118,21 +121,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<!--<section class="text-center">
|
|
||||||
<video id="myCamVideoSetup" autoplay muted></video>
|
|
||||||
</section>
|
|
||||||
<section class="text-center">
|
|
||||||
<h5>Select your camera</h3>
|
|
||||||
<select id="camera">
|
|
||||||
</select>
|
|
||||||
</section>
|
|
||||||
<section class="text-center">
|
|
||||||
<h5>Select your michrophone</h3>
|
|
||||||
<select id="michrophone">
|
|
||||||
</select>
|
|
||||||
</section>-->
|
|
||||||
<section class="action">
|
<section class="action">
|
||||||
<button type="submit" class="nes-btn is-primary letsgo" >Let's go!</button>
|
<button type="submit" class="nes-btn is-primary letsgo" >Let's go!</button>
|
||||||
</section>
|
</section>
|
||||||
|
@ -140,23 +128,10 @@
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.enableCameraScene {
|
.enableCameraScene {
|
||||||
position: absolute;
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
/*background: #000000;*/
|
|
||||||
margin: 20px auto 0;
|
margin: 20px auto 0;
|
||||||
color: #ebeeee;
|
color: #ebeeee;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
/*max-height: 48vh;
|
|
||||||
width: 42vw;
|
|
||||||
max-width: 300px;*/
|
|
||||||
|
|
||||||
/*section.title {
|
|
||||||
position: absolute;
|
|
||||||
top: 1vh;
|
|
||||||
width: 100%;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
section.selectWebcamForm {
|
section.selectWebcamForm {
|
||||||
margin-top: 3vh;
|
margin-top: 3vh;
|
||||||
|
@ -180,8 +155,6 @@
|
||||||
section.action{
|
section.action{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
/*position: absolute;
|
|
||||||
top: 85vh;*/
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,10 +182,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.webrtcsetup{
|
.webrtcsetup{
|
||||||
/*position: absolute;
|
|
||||||
top: 140px;
|
|
||||||
left: 0;
|
|
||||||
right: 0;*/
|
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
@ -225,23 +194,21 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
img.background-img {
|
img.background-img {
|
||||||
/*position: relative;*/
|
|
||||||
/*display: block;*/
|
|
||||||
width: 40%;
|
width: 40%;
|
||||||
/*height: 60%;*/
|
|
||||||
/*top: 50%;*/
|
|
||||||
/*transform: translateY(-50%);*/
|
|
||||||
}
|
|
||||||
|
|
||||||
.hide {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#myCamVideoSetup {
|
.myCamVideoSetup {
|
||||||
width: 100%;
|
margin-top: 2vh;
|
||||||
height: 100%;
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: 50vw;
|
||||||
|
border: white 6px solid;
|
||||||
-webkit-transform: scaleX(-1);
|
-webkit-transform: scaleX(-1);
|
||||||
transform: scaleX(-1);
|
transform: scaleX(-1);
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue