@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 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
- * Shows CONNECTING state and triggers fallback if verification times out
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
- * Shows CONNECTING state and triggers fallback if verification times out
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
- * Shows CONNECTING state and triggers fallback if verification times out
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.showNotification(`Connecting to ${video.name}...`, 6e3);
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.log(`Stream verification timeout (callback mode): ${video.name}`);
4360
- this._handleStreamOffline();
4360
+ this._streamVerified = true;
4361
+ this._clearVerificationTimeout();
4362
+ this.log(`Stream auto-verified (callback mode): ${video.name}`);
4361
4363
  }
4362
- }, 5e3);
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
- * Shows CONNECTING state and triggers fallback if verification times out
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.showNotification(`Connecting to ${video.name}...`, 6e3);
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.log(`Stream verification timeout (callback mode): ${video.name}`);
4312
- this._handleStreamOffline();
4312
+ this._streamVerified = true;
4313
+ this._clearVerificationTimeout();
4314
+ this.log(`Stream auto-verified (callback mode): ${video.name}`);
4313
4315
  }
4314
- }, 5e3);
4316
+ }, 2e3);
4315
4317
  }
4316
4318
  /**
4317
4319
  * Call this to confirm that a video stream is playing successfully.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.5.19",
3
+ "version": "2.5.20",
4
4
  "description": "Connect your Decentraland scene to thestatic.tv - full channel lineup, metrics tracking, and interactions",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",