소스 검색

Some param options

master
Roderic Day 5 년 전
부모
커밋
42e7a9d279
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -0
      apps/streams.js
  2. +1
    -1
      pico.js

+ 1
- 0
apps/streams.js 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장