Skip to content

Commit

Permalink
Define videoSource before videoSelect.onchange to avoid ReferenceError.
Browse files Browse the repository at this point in the history
  • Loading branch information
HuaChunbo authored and dalecurtis committed Jun 7, 2023
1 parent 3a96dbd commit 119eb19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/encode-decode-worker/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let latencyPref = "realtime", bitPref = "variable";
let hw = "no-preference";
let streamWorker;
let inputStream, outputStream;
let videoSource;
const rate = document.querySelector('#rate');
const connectButton = document.querySelector('#connect');
const stopButton = document.querySelector('#stop');
Expand Down

0 comments on commit 119eb19

Please sign in to comment.