File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ <h4>Click one of the buttons below to find camera resolutions:</h4>
55
55
</ div >
56
56
</ div >
57
57
< div class ="row " id ="videoarea ">
58
- < video id ="video " autoplay > </ video >
58
+ < video id ="video " autoplay muted playsinline > </ video >
59
59
</ div >
60
60
< div class ="row ">
61
61
< p id ="jump " hidden > Jump to < a href ="#bottom "> bottom</ a > of table</ p >
Original file line number Diff line number Diff line change 10
10
let video = $ ( '#video' ) [ 0 ] , //where we will put & test our video output
11
11
deviceList = $ ( '#devices' ) [ 0 ] , //device list dropdown
12
12
devices = [ ] , //getSources object to hold various camera options
13
- stream ,
14
13
selectedCamera = [ ] , //used to hold a camera's ID and other parameters
15
14
tests , //holder for our test results
16
15
r = 0 , //used for iterating through the array
@@ -156,7 +155,7 @@ function gum(candidate, device) {
156
155
console . log ( "trying " + candidate . label + " on " + device . label ) ;
157
156
158
157
//Kill any running streams;
159
- if ( stream ) {
158
+ if ( window . stream ) {
160
159
stream . getTracks ( ) . forEach ( ( track ) => {
161
160
track . stop ( ) ;
162
161
} ) ;
@@ -182,7 +181,7 @@ function gum(candidate, device) {
182
181
captureResults ( "fail: " + error . name ) ;
183
182
}
184
183
} ) ;
185
- } , ( stream ? 200 : 0 ) ) ; //official examples had this at 200
184
+ } , ( window . stream ? 200 : 0 ) ) ; //official examples had this at 200
186
185
187
186
188
187
function gotStream ( mediaStream ) {
You can’t perform that action at this time.
0 commit comments