@thestatic-tv/dcl-sdk 2.5.25 → 2.5.27
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 +4 -8
- package/dist/index.mjs +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4326,12 +4326,8 @@ var StaticTVClient = class {
|
|
|
4326
4326
|
}
|
|
4327
4327
|
if (hasCallback) {
|
|
4328
4328
|
this.config.onVideoPlay(video.src);
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
} else {
|
|
4332
|
-
this._streamVerified = true;
|
|
4333
|
-
this._pendingVideoData = null;
|
|
4334
|
-
}
|
|
4329
|
+
this._streamVerified = true;
|
|
4330
|
+
this._pendingVideoData = null;
|
|
4335
4331
|
}
|
|
4336
4332
|
if (this.guideUI) {
|
|
4337
4333
|
this.guideUI.currentVideoId = video.id;
|
|
@@ -4373,10 +4369,10 @@ var StaticTVClient = class {
|
|
|
4373
4369
|
*/
|
|
4374
4370
|
confirmVideoPlaying() {
|
|
4375
4371
|
const timeSinceStart = Date.now() - this._verificationStartTime;
|
|
4376
|
-
const MIN_DELAY =
|
|
4372
|
+
const MIN_DELAY = 200;
|
|
4377
4373
|
this.log(`confirmVideoPlaying called - pending: ${!!this._pendingVideoData}, verified: ${this._streamVerified}, elapsed: ${timeSinceStart}ms`);
|
|
4378
4374
|
if (timeSinceStart < MIN_DELAY) {
|
|
4379
|
-
this.log(`Ignoring early VS_PLAYING (stale event
|
|
4375
|
+
this.log(`Ignoring early VS_PLAYING (stale event, ${timeSinceStart}ms < ${MIN_DELAY}ms)`);
|
|
4380
4376
|
return;
|
|
4381
4377
|
}
|
|
4382
4378
|
if (this._pendingVideoData && !this._streamVerified) {
|
package/dist/index.mjs
CHANGED
|
@@ -4278,12 +4278,8 @@ var StaticTVClient = class {
|
|
|
4278
4278
|
}
|
|
4279
4279
|
if (hasCallback) {
|
|
4280
4280
|
this.config.onVideoPlay(video.src);
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
} else {
|
|
4284
|
-
this._streamVerified = true;
|
|
4285
|
-
this._pendingVideoData = null;
|
|
4286
|
-
}
|
|
4281
|
+
this._streamVerified = true;
|
|
4282
|
+
this._pendingVideoData = null;
|
|
4287
4283
|
}
|
|
4288
4284
|
if (this.guideUI) {
|
|
4289
4285
|
this.guideUI.currentVideoId = video.id;
|
|
@@ -4325,10 +4321,10 @@ var StaticTVClient = class {
|
|
|
4325
4321
|
*/
|
|
4326
4322
|
confirmVideoPlaying() {
|
|
4327
4323
|
const timeSinceStart = Date.now() - this._verificationStartTime;
|
|
4328
|
-
const MIN_DELAY =
|
|
4324
|
+
const MIN_DELAY = 200;
|
|
4329
4325
|
this.log(`confirmVideoPlaying called - pending: ${!!this._pendingVideoData}, verified: ${this._streamVerified}, elapsed: ${timeSinceStart}ms`);
|
|
4330
4326
|
if (timeSinceStart < MIN_DELAY) {
|
|
4331
|
-
this.log(`Ignoring early VS_PLAYING (stale event
|
|
4327
|
+
this.log(`Ignoring early VS_PLAYING (stale event, ${timeSinceStart}ms < ${MIN_DELAY}ms)`);
|
|
4332
4328
|
return;
|
|
4333
4329
|
}
|
|
4334
4330
|
if (this._pendingVideoData && !this._streamVerified) {
|
package/package.json
CHANGED