Roderic Day преди 4 години
родител
ревизия
6376c19791
променени са 2 файла, в които са добавени 6 реда и са изтрити 11 реда
  1. +2
    -10
      apps/screen.js
  2. +4
    -1
      pico.html

+ 2
- 10
apps/screen.js Целия файл

@@ -44,15 +44,8 @@ const ScreenShare = {
m.redraw()
},
view() {
const style = {
overflow: 'scroll',
backgroundColor: 'gray',
color: 'white',
fontFamily: 'monospace',
position: 'relative',
}
return ScreenShare.isOff ? [] : m('.screen-share', {style},
m('video[playsinline][autoplay]', {
return ScreenShare.isOff ? [] :
m('video.screen[playsinline][autoplay]', {
oncreate: ({dom}) => {
dom.srcObject = ScreenShare.stream
},
@@ -62,7 +55,6 @@ const ScreenShare = {
}
},
})
)
},
}
addEventListener('screen-stop', () => {

+ 4
- 1
pico.html Целия файл

@@ -46,8 +46,11 @@ main {
.videos {
flex: 1;
}
.screen-share {
.screen {
flex: 10;
width: 100%;
overflow: scroll;
background-color: gray;
}
</style>
<body>PicoChat requires JS</body>

Loading…
Отказ
Запис