ack-angular-webcam
Advanced tools
Comparing version
{ | ||
"name": "ack-angular-webcam", | ||
"version": "1.3.2", | ||
"version": "1.3.4", | ||
"description": "Angular2 webcam component. Based on MediaDevices and getUserMedia.js ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -264,3 +264,12 @@ "use strict"; | ||
this.isFallback = true; | ||
this.flashPlayer = new videoHelp.Fallback(this.getVideoElm()); | ||
var vidElm = this.getVideoElm(); | ||
vidElm.setAttribute('data', this.options.fallbackSrc); | ||
var params = vidElm.getElementsByTagName('param'); | ||
for (var x = params.length - 1; x >= 0; --x) { | ||
if (params[x].getAttribute('name') == 'movie') { | ||
params[x].setAttribute('value', this.options.fallbackSrc); | ||
break; | ||
} | ||
} | ||
this.flashPlayer = new videoHelp.Fallback(vidElm); | ||
}; | ||
@@ -267,0 +276,0 @@ /** single image to FormData */ |
Sorry, the diff of this file is not supported yet
72606
1.71%610
1.5%