@srgssr/pillarbox-web 1.21.0 → 1.21.2

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.20.0";
6
+ const version = "1.21.1";
7
7
 
8
8
  /** @import VJSPlayer from 'video.js/dist/types/player' */
9
9
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -1,7 +1,7 @@
1
1
  import videojs from 'video.js';
2
2
  import 'videojs-contrib-eme';
3
3
 
4
- const version = "1.20.0";
4
+ const version = "1.21.1";
5
5
 
6
6
  /** @import VJSPlayer from 'video.js/dist/types/player' */
7
7
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -109,7 +109,7 @@ function _objectWithoutProperties(source, excluded) {
109
109
  return target;
110
110
  }
111
111
 
112
- const version = "1.20.0";
112
+ const version = "1.21.1";
113
113
 
114
114
  /** @import VJSPlayer from 'video.js/dist/types/player' */
115
115
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -2629,7 +2629,8 @@ class MediaComposition {
2629
2629
  */
2630
2630
  getChapters() {
2631
2631
  const AUDIO = 'AUDIO';
2632
- if (this.getMainChapter().mediaType === AUDIO) return [];
2632
+ const EPISODE = 'EPISODE';
2633
+ if (this.getMainChapter().mediaType === AUDIO || this.getMainChapter().type !== EPISODE) return [];
2633
2634
  return this.chapterList.filter(({
2634
2635
  mediaType
2635
2636
  }) => mediaType !== AUDIO);