|
|
@@ -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', () => { |