@signalapp/ringrtc
Advanced tools
Comparing version 2.31.2 to 2.32.0
@@ -54,3 +54,3 @@ "use strict"; | ||
CallLinkRestrictions[CallLinkRestrictions["Unknown"] = 2] = "Unknown"; | ||
})(CallLinkRestrictions = exports.CallLinkRestrictions || (exports.CallLinkRestrictions = {})); | ||
})(CallLinkRestrictions || (exports.CallLinkRestrictions = CallLinkRestrictions = {})); | ||
//# sourceMappingURL=CallLinks.js.map |
@@ -95,2 +95,3 @@ /// <reference types="node" /> | ||
onAudioLevels(remoteUserId: UserId, capturedLevel: RawAudioLevel, receivedLevel: RawAudioLevel): void; | ||
onLowBandwidthForVideo(remoteUserId: UserId, recovered: boolean): void; | ||
renderVideoFrame(width: number, height: number, buffer: Buffer): void; | ||
@@ -211,2 +212,3 @@ onSendOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, broadcast: boolean, offerType: OfferType, opaque: Buffer): void; | ||
handleAudioLevels(clientId: GroupCallClientId, capturedLevel: RawAudioLevel, receivedLevels: Array<ReceivedAudioLevel>): void; | ||
handleLowBandwidthForVideo(clientId: GroupCallClientId, recovered: boolean): void; | ||
handleRemoteDevicesChanged(clientId: GroupCallClientId, remoteDeviceStates: Array<RemoteDeviceState>): void; | ||
@@ -298,2 +300,12 @@ handlePeekChanged(clientId: GroupCallClientId, info: PeekInfo): void; | ||
handleAudioLevels?: () => void; | ||
/** | ||
* Notification of low upload bandwidth for sending video. | ||
* | ||
* When this is first called, recovered will be false. The second call (if | ||
* any) will have recovered set to true and will be called when the upload | ||
* bandwidth is high enough to send video. | ||
* | ||
* @param recovered - whether there is enough bandwidth to send video reliably | ||
*/ | ||
handleLowBandwidthForVideo?: (recovered: boolean) => void; | ||
renderVideoFrame?: (width: number, height: number, buffer: Buffer) => void; | ||
@@ -427,2 +439,3 @@ constructor(callManager: CallManager, remoteUserId: UserId, callId: CallId, isIncoming: boolean, isVideoCall: boolean, state: CallState); | ||
onAudioLevels(groupCall: GroupCall): void; | ||
onLowBandwidthForVideo(groupCall: GroupCall, recovered: boolean): void; | ||
onPeekChanged(groupCall: GroupCall): void; | ||
@@ -469,2 +482,3 @@ onEnded(groupCall: GroupCall, reason: GroupCallEndReason): void; | ||
handleAudioLevels(capturedLevel: RawAudioLevel, receivedLevels: Array<ReceivedAudioLevel>): void; | ||
handleLowBandwidthForVideo(recovered: boolean): void; | ||
handleRemoteDevicesChanged(remoteDeviceStates: Array<RemoteDeviceState>): void; | ||
@@ -471,0 +485,0 @@ handlePeekChanged(info: PeekInfo): void; |
@@ -24,3 +24,3 @@ "use strict"; | ||
VideoPixelFormatEnum[VideoPixelFormatEnum["Rgba"] = 2] = "Rgba"; | ||
})(VideoPixelFormatEnum = exports.VideoPixelFormatEnum || (exports.VideoPixelFormatEnum = {})); | ||
})(VideoPixelFormatEnum || (exports.VideoPixelFormatEnum = VideoPixelFormatEnum = {})); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
@@ -339,4 +339,4 @@ function videoPixelFormatFromEnum(format) { | ||
const MAX_VIDEO_CAPTURE_MULTIPLIER = 1.0; | ||
exports.MAX_VIDEO_CAPTURE_WIDTH = 1920 * MAX_VIDEO_CAPTURE_MULTIPLIER; | ||
exports.MAX_VIDEO_CAPTURE_HEIGHT = 1080 * MAX_VIDEO_CAPTURE_MULTIPLIER; | ||
exports.MAX_VIDEO_CAPTURE_WIDTH = 2880 * MAX_VIDEO_CAPTURE_MULTIPLIER; | ||
exports.MAX_VIDEO_CAPTURE_HEIGHT = 1800 * MAX_VIDEO_CAPTURE_MULTIPLIER; | ||
exports.MAX_VIDEO_CAPTURE_AREA = exports.MAX_VIDEO_CAPTURE_WIDTH * exports.MAX_VIDEO_CAPTURE_HEIGHT; | ||
@@ -343,0 +343,0 @@ exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA * 4; |
{ | ||
"name": "@signalapp/ringrtc", | ||
"version": "2.31.2", | ||
"version": "2.32.0", | ||
"description": "Signal Messenger voice and video calling library.", | ||
@@ -12,2 +12,3 @@ "main": "dist/index.js", | ||
"dist/ringrtc/*.d.ts", | ||
"dist/acknowledgments.md", | ||
"scripts/fetch-prebuild.js" | ||
@@ -19,3 +20,3 @@ ], | ||
"test": "electron-mocha --renderer --recursive dist/test --timeout 10000 --require source-map-support/register", | ||
"eslint": "eslint --cache .", | ||
"eslint": "eslint .", | ||
"lint": "yarn format --list-different && yarn eslint", | ||
@@ -28,3 +29,3 @@ "format": "prettier --write .", | ||
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz", | ||
"prebuildChecksum": "7af45efbec336ddd9a83a7b1820f8b4b9784ff427fb0791650292ad88d08c5b1" | ||
"prebuildChecksum": "7800857e52b476b5ac886e79372a62148976f44e1f1f80fcf7f758da05b156fb" | ||
}, | ||
@@ -34,33 +35,32 @@ "author": "", | ||
"dependencies": { | ||
"tar": "^6.1.0" | ||
"tar": "^6.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "4.3.4", | ||
"@types/chai": "4.3.6", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/dom-mediacapture-transform": "0.1.4", | ||
"@types/long": "5.0.0", | ||
"@types/dom-mediacapture-transform": "0.1.6", | ||
"@types/mocha": "10.0.1", | ||
"@types/node": "18.14.0", | ||
"@types/offscreencanvas": "^2019.7.0", | ||
"@types/node": "^18.15.0", | ||
"@types/offscreencanvas": "^2019.7.1", | ||
"@types/sinon-chai": "^3.2.9", | ||
"chai": "4.3.7", | ||
"chai-as-promised": "^7.1.1", | ||
"electron": "22.2.0", | ||
"electron-mocha": "11.0.2", | ||
"eslint": "8.34.0", | ||
"electron": "25.8.1", | ||
"electron-mocha": "12.0.1", | ||
"eslint": "8.49.0", | ||
"eslint-config-airbnb-typescript-prettier": "5.0.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-import": "2.28.1", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"eslint-plugin-more": "1.0.5", | ||
"long": "5.2.1", | ||
"long": "5.2.3", | ||
"mocha": "10.2.0", | ||
"prettier": "^2.8.4", | ||
"rimraf": "4.1.2", | ||
"sinon": "^15.0.1", | ||
"prettier": "^2.8.8", | ||
"rimraf": "4.3.1", | ||
"sinon": "^16.0.0", | ||
"sinon-chai": "^3.7.0", | ||
"source-map-support": "^0.5.19", | ||
"typescript": "4.9.3", | ||
"yarn-audit-fix": "^9.3.9" | ||
"source-map-support": "^0.5.21", | ||
"typescript": "5.2.2", | ||
"yarn-audit-fix": "^10.0.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
397732
26
13
3250
Updatedtar@^6.2.0