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

@@ -3,6 +3,7 @@ const VideoConfig = Object.seal({
audioOn: true,
get video() {
return VideoConfig.videoOn
&& params.get('v') !== '0'
&& {width: {ideal: 320}, facingMode: 'user', frameRate: 26}
},
get audio() {

+ 1
- 1
pico.js View File

@@ -7,7 +7,7 @@ const State = Object.seal({
return State.websocket && State.websocket.readyState === 1
},
})
const params = (new URL(document.location)).searchParams
/*
*
* SIGNALING

Loading…
Cancel
Save