@thestatic-tv/dcl-sdk 2.5.21 → 2.5.23
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -4
- package/dist/index.mjs +12 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1122,7 +1122,7 @@ declare class StaticTVClient {
|
|
|
1122
1122
|
private _playVideoWithVerification;
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Start stream verification for callback-based video playback
|
|
1125
|
-
*
|
|
1125
|
+
* If stream doesn't confirm within timeout, silently triggers fallback
|
|
1126
1126
|
* @internal
|
|
1127
1127
|
*/
|
|
1128
1128
|
private _startCallbackVerification;
|
package/dist/index.d.ts
CHANGED
|
@@ -1122,7 +1122,7 @@ declare class StaticTVClient {
|
|
|
1122
1122
|
private _playVideoWithVerification;
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Start stream verification for callback-based video playback
|
|
1125
|
-
*
|
|
1125
|
+
* If stream doesn't confirm within timeout, silently triggers fallback
|
|
1126
1126
|
* @internal
|
|
1127
1127
|
*/
|
|
1128
1128
|
private _startCallbackVerification;
|
package/dist/index.js
CHANGED
|
@@ -4328,6 +4328,9 @@ var StaticTVClient = class {
|
|
|
4328
4328
|
this.config.onVideoPlay(video.src);
|
|
4329
4329
|
if (isLiveStream) {
|
|
4330
4330
|
this._startCallbackVerification(video);
|
|
4331
|
+
} else {
|
|
4332
|
+
this._streamVerified = true;
|
|
4333
|
+
this._pendingVideoData = null;
|
|
4331
4334
|
}
|
|
4332
4335
|
}
|
|
4333
4336
|
if (this.guideUI) {
|
|
@@ -4336,17 +4339,22 @@ var StaticTVClient = class {
|
|
|
4336
4339
|
}
|
|
4337
4340
|
/**
|
|
4338
4341
|
* Start stream verification for callback-based video playback
|
|
4339
|
-
*
|
|
4342
|
+
* If stream doesn't confirm within timeout, silently triggers fallback
|
|
4340
4343
|
* @internal
|
|
4341
4344
|
*/
|
|
4342
4345
|
_startCallbackVerification(video) {
|
|
4343
|
-
this.showNotification(`Connecting to ${video.name}...`,
|
|
4346
|
+
this.showNotification(`Connecting to ${video.name}...`, 12e3);
|
|
4344
4347
|
this._verificationTimeoutId = utils.timers.setTimeout(() => {
|
|
4345
4348
|
if (!this._streamVerified && this._pendingVideoData) {
|
|
4346
4349
|
this.log(`Stream verification timeout (callback mode): ${video.name}`);
|
|
4347
|
-
this.
|
|
4350
|
+
this._pendingVideoData = null;
|
|
4351
|
+
this._clearVerificationTimeout();
|
|
4352
|
+
if (this.guideUI) {
|
|
4353
|
+
this.guideUI.currentVideoId = null;
|
|
4354
|
+
}
|
|
4355
|
+
this.stopVideo();
|
|
4348
4356
|
}
|
|
4349
|
-
},
|
|
4357
|
+
}, 12e3);
|
|
4350
4358
|
}
|
|
4351
4359
|
/**
|
|
4352
4360
|
* Call this to confirm that a video stream is playing successfully.
|
package/dist/index.mjs
CHANGED
|
@@ -4280,6 +4280,9 @@ var StaticTVClient = class {
|
|
|
4280
4280
|
this.config.onVideoPlay(video.src);
|
|
4281
4281
|
if (isLiveStream) {
|
|
4282
4282
|
this._startCallbackVerification(video);
|
|
4283
|
+
} else {
|
|
4284
|
+
this._streamVerified = true;
|
|
4285
|
+
this._pendingVideoData = null;
|
|
4283
4286
|
}
|
|
4284
4287
|
}
|
|
4285
4288
|
if (this.guideUI) {
|
|
@@ -4288,17 +4291,22 @@ var StaticTVClient = class {
|
|
|
4288
4291
|
}
|
|
4289
4292
|
/**
|
|
4290
4293
|
* Start stream verification for callback-based video playback
|
|
4291
|
-
*
|
|
4294
|
+
* If stream doesn't confirm within timeout, silently triggers fallback
|
|
4292
4295
|
* @internal
|
|
4293
4296
|
*/
|
|
4294
4297
|
_startCallbackVerification(video) {
|
|
4295
|
-
this.showNotification(`Connecting to ${video.name}...`,
|
|
4298
|
+
this.showNotification(`Connecting to ${video.name}...`, 12e3);
|
|
4296
4299
|
this._verificationTimeoutId = utils.timers.setTimeout(() => {
|
|
4297
4300
|
if (!this._streamVerified && this._pendingVideoData) {
|
|
4298
4301
|
this.log(`Stream verification timeout (callback mode): ${video.name}`);
|
|
4299
|
-
this.
|
|
4302
|
+
this._pendingVideoData = null;
|
|
4303
|
+
this._clearVerificationTimeout();
|
|
4304
|
+
if (this.guideUI) {
|
|
4305
|
+
this.guideUI.currentVideoId = null;
|
|
4306
|
+
}
|
|
4307
|
+
this.stopVideo();
|
|
4300
4308
|
}
|
|
4301
|
-
},
|
|
4309
|
+
}, 12e3);
|
|
4302
4310
|
}
|
|
4303
4311
|
/**
|
|
4304
4312
|
* Call this to confirm that a video stream is playing successfully.
|
package/package.json
CHANGED