|
|
@@ -206,12 +206,12 @@ const Video = { |
|
|
|
}, |
|
|
|
view({attrs}) { |
|
|
|
if(!State.options[attrs.username]) { |
|
|
|
State.options[attrs.username] = new Set(['mirror', 'square']) |
|
|
|
State.options[attrs.username] = new Set(VideoOptions.available) |
|
|
|
} |
|
|
|
const options = State.options[attrs.username] |
|
|
|
const classList = [...options].join(' ') |
|
|
|
|
|
|
|
const rpc = State.rpcs[attrs.username] || {iceConnectionState: m.trust(' ')} |
|
|
|
const rpc = State.rpcs[attrs.username] || {iceConnectionState: null} |
|
|
|
return m('.video-container', {class: classList, oncreate: ({dom}) => Video.keepRatio.observe(dom)}, |
|
|
|
m('details.video-meta', |
|
|
|
m('summary', |