소스 검색

screen fixes

master
Roderic Day 4 년 전
부모
커밋
6376c19791
2개의 변경된 파일6개의 추가작업 그리고 11개의 파일을 삭제
  1. +2
    -10
      apps/screen.js
  2. +4
    -1
      pico.html

+ 2
- 10
apps/screen.js 파일 보기

m.redraw() m.redraw()
}, },
view() { 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}) => { oncreate: ({dom}) => {
dom.srcObject = ScreenShare.stream dom.srcObject = ScreenShare.stream
}, },
} }
}, },
}) })
)
}, },
} }
addEventListener('screen-stop', () => { addEventListener('screen-stop', () => {

+ 4
- 1
pico.html 파일 보기

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

Loading…
취소
저장