@thestatic-tv/dcl-sdk 2.5.0 → 2.5.1

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
@@ -3807,6 +3807,11 @@ var StaticTVClient = class {
3807
3807
  * @internal
3808
3808
  */
3809
3809
  _handleGuideVideoSelect(video) {
3810
+ if (video.channelId && video.isLive === false) {
3811
+ this.showNotification(`${video.name} is offline`);
3812
+ this.stopVideo();
3813
+ return;
3814
+ }
3810
3815
  if (video.src) {
3811
3816
  this.playVideo(video.src);
3812
3817
  }
package/dist/index.mjs CHANGED
@@ -3764,6 +3764,11 @@ var StaticTVClient = class {
3764
3764
  * @internal
3765
3765
  */
3766
3766
  _handleGuideVideoSelect(video) {
3767
+ if (video.channelId && video.isLive === false) {
3768
+ this.showNotification(`${video.name} is offline`);
3769
+ this.stopVideo();
3770
+ return;
3771
+ }
3767
3772
  if (video.src) {
3768
3773
  this.playVideo(video.src);
3769
3774
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thestatic-tv/dcl-sdk",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
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",