/usr/share/javascript/rtcninja/rtcninja.min.js is in libjs-rtcninja 0.6.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | "use strict";module.exports=rtcninja;var browser=require("bowser").browser,debug=require("debug")("rtcninja"),debugerror=require("debug")("rtcninja:ERROR"),version=require("./version"),Adapter=require("./Adapter"),RTCPeerConnection=require("./RTCPeerConnection"),called=false;debugerror.log=console.warn.bind(console);debug("version %s",version);debug("detected browser: %s %s [mobile:%s, tablet:%s, android:%s, ios:%s]",browser.name,browser.version,!!browser.mobile,!!browser.tablet,!!browser.android,!!browser.ios);function rtcninja(options){var iface=Adapter(options||{});called=true;rtcninja.RTCPeerConnection=RTCPeerConnection;rtcninja.getUserMedia=iface.getUserMedia;rtcninja.RTCSessionDescription=iface.RTCSessionDescription;rtcninja.RTCIceCandidate=iface.RTCIceCandidate;rtcninja.MediaStreamTrack=iface.MediaStreamTrack;rtcninja.getMediaDevices=iface.getMediaDevices;rtcninja.attachMediaStream=iface.attachMediaStream;rtcninja.closeMediaStream=iface.closeMediaStream;rtcninja.canRenegotiate=iface.canRenegotiate;if(iface.hasWebRTC()){debug("WebRTC supported");return true}else{debugerror("WebRTC not supported");return false}}rtcninja.hasWebRTC=function(){if(!called){rtcninja()}return Adapter.hasWebRTC()};Object.defineProperty(rtcninja,"version",{get:function(){return version}});Object.defineProperty(rtcninja,"called",{get:function(){return called}});rtcninja.debug=require("debug");rtcninja.browser=browser;
|