attachmediastream
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -33,7 +33,7 @@ var adapter = require('webrtc-adapter'); | ||
if (opts.autoplay) element.autoplay = 'autoplay'; | ||
if (opts.muted) element.muted = true; | ||
if (!opts.audio && opts.mirror) { | ||
element.muted = !!opts.muted; | ||
if (!opts.audio) { | ||
['', 'moz', 'webkit', 'o', 'ms'].forEach(function (prefix) { | ||
var styleName = prefix ? prefix + 'Transform' : 'transform'; | ||
element.style[styleName] = 'scaleX(-1)'; | ||
element.style[styleName] = opts.mirror ? 'scaleX(-1)' : 'scaleX(1)'; | ||
}); | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "attachmediastream", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "cross-browser way to attach a media stream to a video element.", | ||
@@ -5,0 +5,0 @@ "main": "attachmediastream.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146395
3825
6