@srgssr/pillarbox-web 1.15.2 → 1.16.0

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.
@@ -3,7 +3,7 @@
3
3
  const videojs = require('video.js');
4
4
  require('videojs-contrib-eme');
5
5
 
6
- const version = "1.15.1";
6
+ const version = "1.15.2";
7
7
 
8
8
  /**
9
9
  * @ignore
@@ -1,7 +1,7 @@
1
1
  import videojs from 'video.js';
2
2
  import 'videojs-contrib-eme';
3
3
 
4
- const version = "1.15.1";
4
+ const version = "1.15.2";
5
5
 
6
6
  /**
7
7
  * @ignore
@@ -109,7 +109,7 @@ function _objectWithoutProperties(source, excluded) {
109
109
  return target;
110
110
  }
111
111
 
112
- const version = "1.15.1";
112
+ const version = "1.15.2";
113
113
 
114
114
  /**
115
115
  * @ignore
@@ -3991,7 +3991,13 @@ class SrgSsr {
3991
3991
  srcOptions = _objectWithoutProperties(srcObj, _excluded2);
3992
3992
  const mediaComposition = yield SrgSsr.getMediaComposition(urn, SrgSsr.dataProvider(player));
3993
3993
  const mainResources = yield SrgSsr.composeMainResources(mediaComposition);
3994
- const mediaData = SrgSsr.getMediaData(mainResources);
3994
+ let mediaData = SrgSsr.getMediaData(mainResources);
3995
+ if (!mediaData) {
3996
+ mediaData = {
3997
+ blockReason: mediaComposition.getMainChapter().blockReason,
3998
+ imageUrl: mediaComposition.getMainChapterImageUrl()
3999
+ };
4000
+ }
3995
4001
  return SrgSsr.composeSrcMediaData(srcOptions, mediaData);
3996
4002
  })();
3997
4003
  }