NET-Web-API-w-Angular/my-app/node_modules/zone.js/fesm2015/zone-patch-user-media.js

20 lines
642 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
'use strict';
/**
* @license Angular v<unknown>
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Zone.__load_patch('getUserMedia', (global, Zone, api) => {
function wrapFunctionArgs(func, source) {
return function () {
const args = Array.prototype.slice.call(arguments);
const wrappedArgs = api.bindArguments(args, source ? source : func.name);
return func.apply(this, wrappedArgs);
};
}
let navigator = global['navigator'];
if (navigator && navigator.getUserMedia) {
navigator.getUserMedia = wrapFunctionArgs(navigator.getUserMedia);
}
});