Sha256: 76ce195c042a2499607596c18ffbd404801f3773a196f1dc3dfe4b101c530f91
Contents?: true
Size: 824 Bytes
Versions: 47
Compression:
Stored size: 824 Bytes
Contents
webshim.register("usermedia-core",function(a,b,c,d){"use strict";var e=b.prefixed("srcObject",d.createElement("video")),f=function(){navigator.getUserMedia=navigator[b.prefixed("getUserMedia",navigator)]};if("srcObject"!=e){var g=!(!c.URL||!URL.createObjectURL);b.defineNodeNamesProperty(["audio","video"],"srcObject",{prop:{get:function(){return this[e]||null},set:function(b){e?a.prop(this,e,b):a.prop(this,"src",g?URL.createObjectURL(b):b)}}})}!function(){var a={},b=URL.createObjectURL,c=URL.revokeObjectURL;URL.createObjectURL=function(c){var d=c;return b&&!c._wsStreamId?d=b.apply(this,arguments):c._wsStreamId&&(d=c._wsStreamId,a[d]=c),d},URL.revokeObjectURL=function(b){if(a[b])delete a[b];else if(c)return c.apply(this,arguments)}}(),b.ready(b.modules["usermedia-shim"].loaded?"usermedia-api":"usermedia-shim",f)});
Version data entries
47 entries across 26 versions & 2 rubygems