File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -92,10 +92,6 @@ var Webcam = {
92
92
window . URL = window . URL || window . webkitURL || window . mozURL || window . msURL ;
93
93
this . userMedia = this . userMedia && ! ! this . mediaDevices && ! ! window . URL ;
94
94
95
- if ( this . iOS ) {
96
- this . userMedia = null ;
97
- }
98
-
99
95
// Older versions of firefox (< 21) apparently claim support but user media does not actually work
100
96
if ( navigator . userAgent . match ( / F i r e f o x \D + ( \d + ) / ) ) {
101
97
if ( parseInt ( RegExp . $1 , 10 ) < 21 ) this . userMedia = null ;
@@ -274,6 +270,7 @@ var Webcam = {
274
270
// setup webcam video container
275
271
var video = document . createElement ( 'video' ) ;
276
272
video . setAttribute ( 'autoplay' , 'autoplay' ) ;
273
+ video . setAttribute ( 'playsinline' , 'playsinline' ) ;
277
274
video . style . width = '' + this . params . dest_width + 'px' ;
278
275
video . style . height = '' + this . params . dest_height + 'px' ;
279
276
You can’t perform that action at this time.
0 commit comments