@signalapp/ringrtc 2.23.0 → 2.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@
2
2
  import { GumVideoCaptureOptions, VideoPixelFormatEnum } from './VideoSupport';
3
3
  declare class Config {
4
4
  use_new_audio_device_module: boolean;
5
+ field_trials: Record<string, string> | undefined;
5
6
  }
6
7
  declare type GroupId = Buffer;
7
8
  declare type GroupCallUserId = Buffer;
@@ -38,7 +38,10 @@ class NativeCallManager {
38
38
  this.createCallEndpoint(config);
39
39
  }
40
40
  createCallEndpoint(config) {
41
- const callEndpoint = Native.createCallEndpoint(this, config.use_new_audio_device_module);
41
+ const fieldTrialsString = Object.entries(config.field_trials || {})
42
+ .map(([k, v]) => `${k}/${v}`)
43
+ .join('/') + '/';
44
+ const callEndpoint = Native.createCallEndpoint(this, config.use_new_audio_device_module, fieldTrialsString);
42
45
  Object.defineProperty(this, Native.callEndpointPropertyKey, {
43
46
  value: callEndpoint,
44
47
  configurable: true, // allows it to be changed
@@ -230,7 +230,7 @@ class GumVideoCapturer {
230
230
  if (track == undefined || this.spawnedSenderRunning) {
231
231
  return;
232
232
  }
233
- if (track.readyState === "ended") {
233
+ if (track.readyState === 'ended') {
234
234
  this.stopCapturing();
235
235
  index_1.RingRTC.logError(`spawnSender(): Video track ended before spawning sender`);
236
236
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.23.0",
3
+ "version": "2.23.1",
4
4
  "description": "Signal Messenger voice and video calling library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "config": {
22
22
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
23
- "prebuildChecksum": "92f2a82a2acc5b853855a17b57f31354166783ec938f2452563f07e32e263c78"
23
+ "prebuildChecksum": "11df4ca9c2fd61daabc9fb8b12f8dd887c5ec3b6aa3937701a9d810345a0da9a"
24
24
  },
25
25
  "author": "",
26
26
  "license": "AGPL-3.0-only",