ring-client-api 12.1.0 → 12.1.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.
@@ -19,7 +19,7 @@ const defaultRequestOptions = {
19
19
  7061: 'ASSET_CELL_BACKUP',
20
20
  7062: 'UPDATING',
21
21
  7063: 'MAINTENANCE',
22
- }, clientApiBaseUrl = 'https://api.ring.com/clients_api/', deviceApiBaseUrl = 'https://api.ring.com/devices/v1/', commandsApiBaseUrl = 'https://api.ring.com/commands/v1/', appApiBaseUrl = 'https://app.ring.com/api/v1/', apiVersion = 11;
22
+ }, clientApiBaseUrl = 'https://api.ring.com/clients_api/', deviceApiBaseUrl = 'https://api.ring.com/devices/v1/', commandsApiBaseUrl = 'https://api.ring.com/commands/v1/', appApiBaseUrl = 'https://prd-api-us.prd.rings.solutions/api/v1/', apiVersion = 11;
23
23
  function clientApi(path) {
24
24
  return clientApiBaseUrl + path;
25
25
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { RtpPacket } from 'werift';
2
3
  import { ReplaySubject, Subject } from 'rxjs';
3
4
  import { WebrtcConnection } from './webrtc-connection';
@@ -8,6 +9,7 @@ export interface FfmpegOptions {
8
9
  input?: SpawnInput[];
9
10
  video?: SpawnInput[] | false;
10
11
  audio?: SpawnInput[];
12
+ stdoutCallback?: (data: Buffer) => void;
11
13
  output: SpawnInput[];
12
14
  }
13
15
  export declare class StreamingSession extends Subscribed {
@@ -90,6 +90,7 @@ class StreamingSession extends subscribed_1.Subscribed {
90
90
  ? ffmpegOptions.video || ['-vcodec', 'copy']
91
91
  : []), ...(ffmpegOptions.output || [])),
92
92
  ffmpegPath: (0, ffmpeg_1.getFfmpegPath)(),
93
+ stdoutCallback: ffmpegOptions.stdoutCallback,
93
94
  exitCallback: () => this.callEnded(),
94
95
  logLabel: `From Ring (${this.camera.name})`,
95
96
  logger: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ring-client-api",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "description": "Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@eneris/push-receiver": "^3.1.5",
21
- "@homebridge/camera-utils": "^2.2.4",
21
+ "@homebridge/camera-utils": "^2.2.5",
22
22
  "@peculiar/asn1-schema": "^2.3.8",
23
23
  "@peculiar/webcrypto": "^1.4.3",
24
24
  "@types/socket.io-client": "1.4.36",