@thestatic-tv/dcl-sdk 2.5.19 → 2.5.20
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 +7 -5
- package/dist/index.mjs +7 -5
- 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
|
+
* Auto-verifies after 2 seconds since we can't detect VS_PLAYING in callback mode
|
|
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
|
+
* Auto-verifies after 2 seconds since we can't detect VS_PLAYING in callback mode
|
|
1126
1126
|
* @internal
|
|
1127
1127
|
*/
|
|
1128
1128
|
private _startCallbackVerification;
|
package/dist/index.js
CHANGED
|
@@ -4349,17 +4349,19 @@ var StaticTVClient = class {
|
|
|
4349
4349
|
}
|
|
4350
4350
|
/**
|
|
4351
4351
|
* Start stream verification for callback-based video playback
|
|
4352
|
-
*
|
|
4352
|
+
* Auto-verifies after 2 seconds since we can't detect VS_PLAYING in callback mode
|
|
4353
4353
|
* @internal
|
|
4354
4354
|
*/
|
|
4355
4355
|
_startCallbackVerification(video) {
|
|
4356
|
-
this.
|
|
4356
|
+
this._verificationStartTime = Date.now();
|
|
4357
|
+
this.showNotification(`Connecting to ${video.name}...`, 3e3);
|
|
4357
4358
|
this._verificationTimeoutId = utils.timers.setTimeout(() => {
|
|
4358
4359
|
if (!this._streamVerified && this._pendingVideoData) {
|
|
4359
|
-
this.
|
|
4360
|
-
this.
|
|
4360
|
+
this._streamVerified = true;
|
|
4361
|
+
this._clearVerificationTimeout();
|
|
4362
|
+
this.log(`Stream auto-verified (callback mode): ${video.name}`);
|
|
4361
4363
|
}
|
|
4362
|
-
},
|
|
4364
|
+
}, 2e3);
|
|
4363
4365
|
}
|
|
4364
4366
|
/**
|
|
4365
4367
|
* Call this to confirm that a video stream is playing successfully.
|
package/dist/index.mjs
CHANGED
|
@@ -4301,17 +4301,19 @@ var StaticTVClient = class {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
/**
|
|
4303
4303
|
* Start stream verification for callback-based video playback
|
|
4304
|
-
*
|
|
4304
|
+
* Auto-verifies after 2 seconds since we can't detect VS_PLAYING in callback mode
|
|
4305
4305
|
* @internal
|
|
4306
4306
|
*/
|
|
4307
4307
|
_startCallbackVerification(video) {
|
|
4308
|
-
this.
|
|
4308
|
+
this._verificationStartTime = Date.now();
|
|
4309
|
+
this.showNotification(`Connecting to ${video.name}...`, 3e3);
|
|
4309
4310
|
this._verificationTimeoutId = utils.timers.setTimeout(() => {
|
|
4310
4311
|
if (!this._streamVerified && this._pendingVideoData) {
|
|
4311
|
-
this.
|
|
4312
|
-
this.
|
|
4312
|
+
this._streamVerified = true;
|
|
4313
|
+
this._clearVerificationTimeout();
|
|
4314
|
+
this.log(`Stream auto-verified (callback mode): ${video.name}`);
|
|
4313
4315
|
}
|
|
4314
|
-
},
|
|
4316
|
+
}, 2e3);
|
|
4315
4317
|
}
|
|
4316
4318
|
/**
|
|
4317
4319
|
* Call this to confirm that a video stream is playing successfully.
|
package/package.json
CHANGED