Skip to content

Commit 119eb19

Browse files
HuaChunbodalecurtis
authored andcommitted
Define videoSource before videoSelect.onchange to avoid ReferenceError.
1 parent 3a96dbd commit 119eb19

File tree

1 file changed

+1
-0
lines changed
  • samples/encode-decode-worker/js

1 file changed

+1
-0
lines changed

samples/encode-decode-worker/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ let latencyPref = "realtime", bitPref = "variable";
99
let hw = "no-preference";
1010
let streamWorker;
1111
let inputStream, outputStream;
12+
let videoSource;
1213
const rate = document.querySelector('#rate');
1314
const connectButton = document.querySelector('#connect');
1415
const stopButton = document.querySelector('#stop');

0 commit comments

Comments
 (0)