Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@signalapp/ringrtc

Package Overview
Dependencies
Maintainers
5
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalapp/ringrtc - npm Package Compare versions

Comparing version 2.27.0 to 2.28.0

2

dist/index.d.ts
import { RingRTCType } from './ringrtc/Service';
export { AnswerMessage, AudioDevice, BandwidthMode, BusyMessage, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, HttpResult, IceCandidateMessage, JoinState, LocalDeviceState, OfferMessage, OfferType, OpaqueMessage, PeekInfo, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
export { AnswerMessage, AudioDevice, DataMode, BusyMessage, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, HttpResult, IceCandidateMessage, JoinState, LocalDeviceState, OfferMessage, OfferType, OpaqueMessage, PeekDeviceInfo, PeekInfo, PeekStatusCodes, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
export { CanvasVideoRenderer, GumVideoCapturer, VideoFrameSource, MAX_VIDEO_CAPTURE_AREA, MAX_VIDEO_CAPTURE_BUFFER_SIZE, MAX_VIDEO_CAPTURE_HEIGHT, MAX_VIDEO_CAPTURE_WIDTH, } from './ringrtc/VideoSupport';
export { CallLinkRootKey, CallLinkRestrictions, CallLinkState, } from './ringrtc/CallLinks';
export declare const RingRTC: RingRTCType;

@@ -7,7 +7,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RingRTC = exports.CallLinkState = exports.CallLinkRestrictions = exports.CallLinkRootKey = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.callIdFromRingId = exports.callIdFromEra = exports.VideoRequest = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekInfo = exports.OpaqueMessage = exports.OfferType = exports.OfferMessage = exports.LocalDeviceState = exports.JoinState = exports.IceCandidateMessage = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BusyMessage = exports.BandwidthMode = exports.AnswerMessage = void 0;
exports.RingRTC = exports.CallLinkState = exports.CallLinkRestrictions = exports.CallLinkRootKey = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.callIdFromRingId = exports.callIdFromEra = exports.VideoRequest = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekStatusCodes = exports.OpaqueMessage = exports.OfferType = exports.OfferMessage = exports.LocalDeviceState = exports.JoinState = exports.IceCandidateMessage = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BusyMessage = exports.DataMode = exports.AnswerMessage = void 0;
const Service_1 = require("./ringrtc/Service");
var Service_2 = require("./ringrtc/Service");
Object.defineProperty(exports, "AnswerMessage", { enumerable: true, get: function () { return Service_2.AnswerMessage; } });
Object.defineProperty(exports, "BandwidthMode", { enumerable: true, get: function () { return Service_2.BandwidthMode; } });
Object.defineProperty(exports, "DataMode", { enumerable: true, get: function () { return Service_2.DataMode; } });
Object.defineProperty(exports, "BusyMessage", { enumerable: true, get: function () { return Service_2.BusyMessage; } });

@@ -33,3 +33,3 @@ Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return Service_2.Call; } });

Object.defineProperty(exports, "OpaqueMessage", { enumerable: true, get: function () { return Service_2.OpaqueMessage; } });
Object.defineProperty(exports, "PeekInfo", { enumerable: true, get: function () { return Service_2.PeekInfo; } });
Object.defineProperty(exports, "PeekStatusCodes", { enumerable: true, get: function () { return Service_2.PeekStatusCodes; } });
Object.defineProperty(exports, "RemoteDeviceState", { enumerable: true, get: function () { return Service_2.RemoteDeviceState; } });

@@ -36,0 +36,0 @@ Object.defineProperty(exports, "RingCancelReason", { enumerable: true, get: function () { return Service_2.RingCancelReason; } });

@@ -12,8 +12,7 @@ /// <reference types="node" />

type GroupCallUserId = Buffer;
export declare class PeekDeviceInfo {
export interface PeekDeviceInfo {
demuxId: number;
userId?: GroupCallUserId;
constructor(demuxId: number, userId: GroupCallUserId | undefined);
}
export declare class PeekInfo {
export interface PeekInfo {
devices: Array<PeekDeviceInfo>;

@@ -24,4 +23,7 @@ creator?: GroupCallUserId;

deviceCount: number;
constructor();
}
export declare enum PeekStatusCodes {
EXPIRED_CALL_LINK = 703,
INVALID_CALL_LINK = 704
}
declare enum NetworkAdapterType {

@@ -196,3 +198,5 @@ Unknown = 0,

getGroupCall(groupId: Buffer, sfuUrl: string, hkdfExtraInfo: Buffer, audioLevelsIntervalMillis: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
getCallLinkCall(sfuUrl: string, authCredentialPresentation: Buffer, rootKey: CallLinkRootKey, adminPasskey: Buffer | undefined, hkdfExtraInfo: Buffer, audioLevelsIntervalMillis: number | undefined, observer: GroupCallObserver): GroupCall | undefined;
peekGroupCall(sfuUrl: string, membershipProof: Buffer, groupMembers: Array<GroupMemberInfo>): Promise<PeekInfo>;
peekCallLinkCall(sfuUrl: string, authCredentialPresentation: Buffer, rootKey: CallLinkRootKey): Promise<HttpResult<PeekInfo>>;
requestMembershipProof(clientId: GroupCallClientId): void;

@@ -206,3 +210,3 @@ requestGroupMembers(clientId: GroupCallClientId): void;

handlePeekChanged(clientId: GroupCallClientId, info: PeekInfo): void;
handlePeekResponse(requestId: number, info: PeekInfo): void;
handlePeekResponse(requestId: number, statusCode: number, info: PeekInfo | undefined): void;
handleCallLinkResponse(requestId: number, statusCode: number, state: {

@@ -245,3 +249,3 @@ name: string;

hideIp: boolean;
bandwidthMode: BandwidthMode;
dataMode: DataMode;
audioLevelsIntervalMillis?: number;

@@ -317,3 +321,3 @@ }

private setOutgoingVideoEnabled;
updateBandwidthMode(bandwidthMode: BandwidthMode): void;
updateDataMode(dataMode: DataMode): void;
private enableOrDisableRenderer;

@@ -425,3 +429,3 @@ }

private _peekInfo;
constructor(callManager: CallManager, groupId: Buffer, sfuUrl: string, hkdfExtraInfo: Buffer, audioLevelsIntervalMillis: number | undefined, observer: GroupCallObserver);
constructor(callManager: CallManager, observer: GroupCallObserver, clientId: GroupCallClientId);
connect(): void;

@@ -440,3 +444,3 @@ join(): void;

resendMediaKeys(): void;
setBandwidthMode(bandwidthMode: BandwidthMode): void;
setDataMode(dataMode: DataMode): void;
requestVideo(resolutions: Array<VideoRequest>, activeSpeakerHeight: number): void;

@@ -526,3 +530,3 @@ setGroupMembers(members: Array<GroupMemberInfo>): void;

}
export declare enum BandwidthMode {
export declare enum DataMode {
Low = 0,

@@ -539,3 +543,3 @@ Normal = 1

createOutgoingCall(remoteUserId: UserId, isVideoCall: boolean, localDeviceId: DeviceId): CallId;
proceed(callId: CallId, iceServerUsername: string, iceServerPassword: string, iceServerUrls: Array<string>, hideIp: boolean, bandwidthMode: BandwidthMode, audioLevelsIntervalMillis: number): void;
proceed(callId: CallId, iceServerUsername: string, iceServerPassword: string, iceServerUrls: Array<string>, hideIp: boolean, dataMode: DataMode, audioLevelsIntervalMillis: number): void;
accept(callId: CallId): void;

@@ -550,3 +554,3 @@ ignore(callId: CallId): void;

setOutgoingVideoIsScreenShare(enabled: boolean): void;
updateBandwidthMode(bandwidthMode: BandwidthMode): void;
updateDataMode(dataMode: DataMode): void;
sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Buffer): void;

@@ -563,2 +567,3 @@ receiveVideoFrame(buffer: Buffer, maxWidth: number, maxHeight: number): [number, number] | undefined;

createGroupCallClient(groupId: Buffer, sfuUrl: string, hkdfExtraInfo: Buffer, audioLevelsIntervalMillis: number): GroupCallClientId;
createCallLinkCallClient(sfuUrl: string, authCredentialPresentation: Buffer, linkRootKey: Buffer, adminPasskey: Buffer | undefined, hkdfExtraInfo: Buffer, audioLevelsIntervalMillis: number): GroupCallClientId;
deleteGroupCallClient(clientId: GroupCallClientId): void;

@@ -575,3 +580,3 @@ connect(clientId: GroupCallClientId): void;

resendMediaKeys(clientId: GroupCallClientId): void;
setBandwidthMode(clientId: GroupCallClientId, bandwidthMode: BandwidthMode): void;
setDataMode(clientId: GroupCallClientId, dataMode: DataMode): void;
requestVideo(clientId: GroupCallClientId, resolutions: Array<VideoRequest>, activeSpeakerHeight: number): void;

@@ -585,2 +590,3 @@ setGroupMembers(clientId: GroupCallClientId, members: Array<GroupMemberInfo>): void;

peekGroupCall(requestId: number, sfu_url: string, membership_proof: Buffer, group_members: Array<GroupMemberInfo>): void;
peekCallLinkCall(requestId: number, sfuUrl: string, authCredentialPresentation: Buffer, linkRootKey: Buffer): void;
getAudioInputs(): Array<AudioDevice>;

@@ -614,3 +620,3 @@ setAudioInput(index: number): void;

handlePeekChanged(clientId: GroupCallClientId, info: PeekInfo): void;
handlePeekResponse(requestId: number, info: PeekInfo): void;
handlePeekResponse(requestId: number, statusCode: number, info: PeekInfo | undefined): void;
handleEnded(clientId: GroupCallClientId, reason: GroupCallEndReason): void;

@@ -617,0 +623,0 @@ onLogMessage(level: number, fileName: string, line: number, message: string): void;

{
"name": "@signalapp/ringrtc",
"version": "2.27.0",
"version": "2.28.0",
"description": "Signal Messenger voice and video calling library.",

@@ -26,3 +26,3 @@ "main": "dist/index.js",

"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
"prebuildChecksum": "864c376c4998ae9a0a832c5753089e881d5466e2bbae5d11dae7486226129d5a"
"prebuildChecksum": "5d4bd3c13ee3373d0e67dacce7e64a422fdc4e0eb8f9c551495fa5b90ec1f322"
},

@@ -29,0 +29,0 @@ "author": "",

Sorry, the diff of this file is too big to display

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