@apocaliss92/scrypted-reolink-native 0.3.13 → 0.3.14
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/dist/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/camera.ts +7 -4
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/camera.ts
CHANGED
|
@@ -2444,13 +2444,16 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2444
2444
|
|
|
2445
2445
|
// Order streams based on preferredStreams setting
|
|
2446
2446
|
const preferredOrder = this.storageSettings.values.preferredStreams || 'Default';
|
|
2447
|
-
let supportedStreams:
|
|
2447
|
+
let supportedStreams: ReolinkSupportedStream[] = [];
|
|
2448
2448
|
|
|
2449
2449
|
if (preferredOrder === 'Default') {
|
|
2450
2450
|
// Default: Native -> RTSP -> RTMP
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2451
|
+
// BUT for multifocal cameras without NVR, prefer RTSP -> RTMP -> Native
|
|
2452
|
+
if (this.multiFocalDevice && !this.nvrDevice) {
|
|
2453
|
+
supportedStreams = [...rtspStreams, ...rtmpStreams, ...nativeStreams];
|
|
2454
|
+
} else {
|
|
2455
|
+
supportedStreams = [...nativeStreams, ...rtspStreams, ...rtmpStreams];
|
|
2456
|
+
}
|
|
2454
2457
|
} else if (preferredOrder === 'Native') {
|
|
2455
2458
|
supportedStreams = [...nativeStreams, ...rtspStreams, ...rtmpStreams];
|
|
2456
2459
|
} else if (preferredOrder === 'RTSP') {
|