@mega-yfue/eufy-sdk 0.5.0-beta.79 → 0.5.0-beta.80
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/index.js
CHANGED
|
@@ -20091,16 +20091,25 @@ var SharedLiveSource = class {
|
|
|
20091
20091
|
* at all, audio without a single video frame, or access units a decoder cannot begin at.
|
|
20092
20092
|
*
|
|
20093
20093
|
* Video takes precedence when both arrived: audio alongside video says nothing a caller needs, while video
|
|
20094
|
-
* without a keyframe does.
|
|
20094
|
+
* without a keyframe does. Every failed start is built here, so this is where its `start-failed` trace is
|
|
20095
|
+
* emitted.
|
|
20095
20096
|
*/
|
|
20096
20097
|
startFailure(reason, cause) {
|
|
20097
|
-
|
|
20098
|
+
const err = new LiveStreamStartError({
|
|
20098
20099
|
reason,
|
|
20099
20100
|
stage: this.delivered.video ? "awaiting-keyframe" : this.delivered.audio ? "audio-only" : "awaiting-first-frame",
|
|
20100
20101
|
timeoutMs: this.warmTimeoutMs,
|
|
20101
20102
|
attempts: this.warmAttempts,
|
|
20102
20103
|
cause
|
|
20103
20104
|
});
|
|
20105
|
+
this.trace({
|
|
20106
|
+
phase: "start-failed",
|
|
20107
|
+
reason,
|
|
20108
|
+
stage: err.stage,
|
|
20109
|
+
attempts: err.attempts,
|
|
20110
|
+
...cause ? { errorName: cause.name } : {}
|
|
20111
|
+
});
|
|
20112
|
+
return err;
|
|
20104
20113
|
}
|
|
20105
20114
|
onVideo(frame) {
|
|
20106
20115
|
this.delivered.video = true;
|