@camstack/addon-provider-reolink 1.2.196 → 1.2.197
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/addon.js +18 -1
- package/dist/addon.mjs +18 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -187816,6 +187816,22 @@ function createClipService(deps) {
|
|
|
187816
187816
|
if (uidIsMissing(device)) return refuseStill("uid-missing", UID_MISSING_REASON);
|
|
187817
187817
|
const row = rowFor(deviceId, clipKey);
|
|
187818
187818
|
if (row === null) return refuseStill("no-catalog-row", "no-catalog-row: list this day before asking for its stills");
|
|
187819
|
+
let ffmpegPath;
|
|
187820
|
+
try {
|
|
187821
|
+
ffmpegPath = await deps.resolveFfmpeg();
|
|
187822
|
+
} catch (err) {
|
|
187823
|
+
const reason = `${NO_PINNED_FFMPEG_DETAIL}: ${err instanceof Error ? err.message : String(err)}`;
|
|
187824
|
+
deps.logger.warn("videoclips: a thumbnail mint refused", {
|
|
187825
|
+
tags: { deviceId },
|
|
187826
|
+
meta: {
|
|
187827
|
+
clipKey,
|
|
187828
|
+
lane,
|
|
187829
|
+
branch: "decode-failed",
|
|
187830
|
+
error: reason
|
|
187831
|
+
}
|
|
187832
|
+
});
|
|
187833
|
+
return refuseStill("decode-failed", reason);
|
|
187834
|
+
}
|
|
187819
187835
|
try {
|
|
187820
187836
|
const bytes = await queue.submit({
|
|
187821
187837
|
host: device.hostKey,
|
|
@@ -187828,7 +187844,8 @@ function createClipService(deps) {
|
|
|
187828
187844
|
snapType: "sub",
|
|
187829
187845
|
...device.uid === void 0 ? {} : { uid: device.uid },
|
|
187830
187846
|
isNvr: device.isHubChild,
|
|
187831
|
-
timeZone: device.timeZone
|
|
187847
|
+
timeZone: device.timeZone,
|
|
187848
|
+
ffmpegPath
|
|
187832
187849
|
});
|
|
187833
187850
|
}
|
|
187834
187851
|
});
|
package/dist/addon.mjs
CHANGED
|
@@ -187808,6 +187808,22 @@ function createClipService(deps) {
|
|
|
187808
187808
|
if (uidIsMissing(device)) return refuseStill("uid-missing", UID_MISSING_REASON);
|
|
187809
187809
|
const row = rowFor(deviceId, clipKey);
|
|
187810
187810
|
if (row === null) return refuseStill("no-catalog-row", "no-catalog-row: list this day before asking for its stills");
|
|
187811
|
+
let ffmpegPath;
|
|
187812
|
+
try {
|
|
187813
|
+
ffmpegPath = await deps.resolveFfmpeg();
|
|
187814
|
+
} catch (err) {
|
|
187815
|
+
const reason = `${NO_PINNED_FFMPEG_DETAIL}: ${err instanceof Error ? err.message : String(err)}`;
|
|
187816
|
+
deps.logger.warn("videoclips: a thumbnail mint refused", {
|
|
187817
|
+
tags: { deviceId },
|
|
187818
|
+
meta: {
|
|
187819
|
+
clipKey,
|
|
187820
|
+
lane,
|
|
187821
|
+
branch: "decode-failed",
|
|
187822
|
+
error: reason
|
|
187823
|
+
}
|
|
187824
|
+
});
|
|
187825
|
+
return refuseStill("decode-failed", reason);
|
|
187826
|
+
}
|
|
187811
187827
|
try {
|
|
187812
187828
|
const bytes = await queue.submit({
|
|
187813
187829
|
host: device.hostKey,
|
|
@@ -187820,7 +187836,8 @@ function createClipService(deps) {
|
|
|
187820
187836
|
snapType: "sub",
|
|
187821
187837
|
...device.uid === void 0 ? {} : { uid: device.uid },
|
|
187822
187838
|
isNvr: device.isHubChild,
|
|
187823
|
-
timeZone: device.timeZone
|
|
187839
|
+
timeZone: device.timeZone,
|
|
187840
|
+
ffmpegPath
|
|
187824
187841
|
});
|
|
187825
187842
|
}
|
|
187826
187843
|
});
|