Browse Source

Some param options

master
Roderic Day 5 years ago
parent
commit
42e7a9d279
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      apps/streams.js
  2. +1
    -1
      pico.js

+ 1
- 0
apps/streams.js View File

audioOn: true, audioOn: true,
get video() { get video() {
return VideoConfig.videoOn return VideoConfig.videoOn
&& params.get('v') !== '0'
&& {width: {ideal: 320}, facingMode: 'user', frameRate: 26} && {width: {ideal: 320}, facingMode: 'user', frameRate: 26}
}, },
get audio() { get audio() {

+ 1
- 1
pico.js View File

return State.websocket && State.websocket.readyState === 1 return State.websocket && State.websocket.readyState === 1
}, },
}) })
const params = (new URL(document.location)).searchParams
/* /*
* *
* SIGNALING * SIGNALING

Loading…
Cancel
Save