Explorar el Código

Some param options

master
Roderic Day hace 5 años
padre
commit
42e7a9d279
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. +1
    -0
      apps/streams.js
  2. +1
    -1
      pico.js

+ 1
- 0
apps/streams.js Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar