New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aculab-com/aculab-webrtc

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aculab-com/aculab-webrtc - npm Package Compare versions

Comparing version 3.3.2 to 3.3.3

src/out.txt

14

interface.md

@@ -170,8 +170,4 @@ _aculab-webrtc javascript interface_

Gets the callId used for the call. For outgoing calls this may return `undefined` until the onConnecting() callback is being called. For incoming calls it is always available.
Gets the callId used for the call. For outgoing calls this may return `undefined` until the onConnecting() callback is being called. For incoming calls it is always available. This value is exchanged with the remote party and will be the same at each end of the call.
### string callUuid()
Gets the callUuid used for the call.
### void mute(mic, outputAudio, camera, outputVideo)

@@ -191,2 +187,10 @@

AculabCloudCall data properties
---------------------------------
### callUuid *(get only)*
A string representation of a locally assigned version 4 UUID. This is assigned when the call object is created and does not change.
AculabCloudCall callback properties

@@ -193,0 +197,0 @@ -----------------------------------

{
"name": "@aculab-com/aculab-webrtc",
"version": "3.3.2",
"version": "3.3.3",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "type": "module",

@@ -250,3 +250,36 @@ import { SessionState } from "sip.js";

}
isMuted() {
/**
* @return {Object} - {"mic": true/false, "output_audio": true/false, "camera": true/false, "output_video": true/false}
* */
var ret = {"mic": true, "output_audio": true, "camera": true, "output_video": true};
// check output
if (this._remote_stream) {
this._remote_stream.getTracks().forEach((t) => {
if (t.kind == "audio") {
ret["output_audio"] = !t.enabled;
} else if (t.kind == "video") {
ret["output_video"] = !t.enabled;
}
});
}
// check mic and camera
if (this._session && this._session.sessionDescriptionHandler && this._session.sessionDescriptionHandler.peerConnection) {
var pc = this._session.sessionDescriptionHandler.peerConnection;
pc.getSenders().forEach(function (sender) {
if (sender.track) {
if (sender.track.kind == "audio") {
ret["mic"] = !sender.track.enabled;
} else if (sender.track.kind == "video") {
ret["camera"] = !sender.track.enabled;
}
}
});
}
return ret;
}
_onclientready() {

@@ -253,0 +286,0 @@ // nothing to do in base class

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc