bug1963270-app.kosmi.io-unprefix-mozCaptureStream.js (638B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 /** 8 * Bug 1963270 - app.kosmi.io - missing "local file" media selection option 9 * 10 * The site does not show its "local file" option when selecting media 11 * unless the captureStream API is available, and does not check for the 12 * prefixed version (which it seems to work with, so we unprefix it here). 13 */ 14 15 const { prototype } = HTMLMediaElement.wrappedJSObject; 16 prototype.captureStream = prototype.mozCaptureStream;