File tree Expand file tree Collapse file tree 2 files changed +21
-22
lines changed
Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -250,16 +250,19 @@ export default {
250250 },
251251
252252 watch: {
253- enabled (enabled ) {
254- if (this .enabled ) {
255- this .mediaDevicesManager .enableDeviceEvents ()
256- this .updateAudioStream ()
257- this .updateVideoStream ()
258- } else {
259- this .mediaDevicesManager .disableDeviceEvents ()
260- this .stopAudioStream ()
261- this .stopVideoStream ()
262- }
253+ enabled: {
254+ handler : function (enabled ) {
255+ if (this .enabled ) {
256+ this .mediaDevicesManager .enableDeviceEvents ()
257+ this .updateAudioStream ()
258+ this .updateVideoStream ()
259+ } else {
260+ this .mediaDevicesManager .disableDeviceEvents ()
261+ this .stopAudioStream ()
262+ this .stopVideoStream ()
263+ }
264+ },
265+ immediate: true ,
263266 },
264267
265268 audioInputId (audioInputId ) {
@@ -475,7 +478,6 @@ export default {
475478<style lang="scss" scoped>
476479.preview {
477480 display : flex ;
478- justify-content : center ;
479481
480482 .icon {
481483 background-size : 64px ;
@@ -527,14 +529,14 @@ export default {
527529}
528530
529531.preview-video {
532+ margin-top : 24px ;
530533 .preview-not-available .icon {
531- margin-top : 64 px ;
534+ margin-top : 16 px ;
532535 margin-bottom : 16px ;
533536 }
534537
535538 video {
536539 display : block ;
537- max-height : 192px ;
538540 }
539541}
540542 </style >
Original file line number Diff line number Diff line change 2020
2121<template >
2222 <div class =" media-devices-selector" >
23- <label :for =" deviceSelectorId" >{{ deviceSelectorLabel }}</label >
23+ <h3 :for =" deviceSelectorId" >
24+ {{ deviceSelectorLabel }}
25+ </h3 >
2426 <Multiselect :id =" deviceSelectorId"
2527 v-model =" deviceSelectedOption"
2628 :options =" deviceOptions"
@@ -158,16 +160,11 @@ export default {
158160
159161<style lang="scss" scoped>
160162.media-devices-selector {
161- display : flex ;
162- align-items : center ;
163-
164- margin-top : 5px ;
165- margin-bottom : 5px ;
163+ margin-top : 28px ;
164+ margin-bottom : 8px ;
166165
167166 .multiselect {
168- flex-grow : 1 ;
169-
170- margin-left : 5px ;
167+ width : 250px ;
171168 }
172169}
173170 </style >
You can’t perform that action at this time.
0 commit comments