ring-client-api 10.0.0-beta.0 → 10.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [10.0.0-beta.1](https://github.com/dgreif/ring/compare/v10.0.0-beta.0...v10.0.0-beta.1) (2022-02-27)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **homebridge:** For anyone who updated to the 10.0 beta and had their cameras reset in HomeKit, this change will cause another reset. This moves the audio codecs back to what they were before the 10.0 beta, which means anyone upgrading directly from v9 will _not_ experience a reset of the cameras. Using native Opus was an experimental feature, which ultimately lead to a degraded user experience.
11
+
12
+ ### Bug Fixes
13
+
14
+ * allow video transcoding to be skipped ([1ef8cdd](https://github.com/dgreif/ring/commit/1ef8cdd54d1f118a8fdcfd28f6970d9c8b7c65f9))
15
+ * **homebridge:** switch back to aac-eld from opus ([7dcd2a0](https://github.com/dgreif/ring/commit/7dcd2a087da7c1b24cc9bdd3c3919af5e6fb7997))
16
+
5
17
  ## [10.0.0-beta.0](https://github.com/dgreif/ring/compare/v9.25.0-beta.1...v10.0.0-beta.0) (2022-02-18)
6
18
 
7
19
 
@@ -19,6 +19,14 @@ const operators_1 = require("rxjs/operators");
19
19
  const subscribed_1 = require("./subscribed");
20
20
  const camera_utils_1 = require("@homebridge/camera-utils");
21
21
  const ffmpeg_1 = require("./ffmpeg");
22
+ function getCleanSdp(sdp, includeVideo) {
23
+ return sdp
24
+ .split('\nm=')
25
+ .slice(1)
26
+ .map((section) => 'm=' + section)
27
+ .filter((section) => includeVideo || !section.startsWith('m=video'))
28
+ .join('\n');
29
+ }
22
30
  class LiveCall extends subscribed_1.Subscribed {
23
31
  constructor(sessionId, camera) {
24
32
  super();
@@ -92,7 +100,7 @@ class LiveCall extends subscribed_1.Subscribed {
92
100
  ...(ffmpegOptions.input || []),
93
101
  '-i',
94
102
  'pipe:',
95
- ], inputSdp = (yield (0, rxjs_1.firstValueFrom)(this.onCallAnswered))
103
+ ], ringSdp = yield (0, rxjs_1.firstValueFrom)(this.onCallAnswered), inputSdp = getCleanSdp(ringSdp, transcodeVideoStream)
96
104
  .replace(/m=audio \d+/, `m=audio ${audioPort}`)
97
105
  .replace(/m=video \d+/, `m=video ${videoPort}`), ff = new camera_utils_1.FfmpegProcess({
98
106
  ffmpegArgs: ffmpegInputArguments.concat(...(ffmpegOptions.audio || ['-acodec', 'aac']), ...(transcodeVideoStream
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ring-client-api",
3
- "version": "10.0.0-beta.0",
3
+ "version": "10.0.0-beta.1",
4
4
  "description": "Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/api/index.js",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "watch:tests": "jest --watch",
15
15
  "lint": "eslint '**/*.ts' --fix",
16
16
  "build": "rm -rf lib && tsc --declaration",
17
- "build-quick": "rm -rf lib && esbuild ./{api,examples,homebridge}/*.ts ./api/*.js --target=es2017 --format=cjs --outdir=lib",
17
+ "build-quick": "rm -rf lib && esbuild ./{api,examples,homebridge}/*.ts --target=es2017 --format=cjs --outdir=lib",
18
18
  "example": "npm run build-quick && node ./lib/examples/example.js",
19
19
  "api-example": "npm run build-quick && node ./lib/examples/api-example.js",
20
20
  "record-example": "npm run build-quick && node ./lib/examples/record-example.js",