@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.
- package/dist/pillarbox-core.cjs.js +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs.js +3 -2
- package/dist/pillarbox.cjs.js.map +1 -1
- package/dist/pillarbox.es.js +3 -2
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +3 -2
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +1 -1
- package/dist/pillarbox.umd.min.js.map +1 -1
- package/dist/types/src/dataProvider/model/MediaComposition.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/pillarbox.es.js
CHANGED
|
@@ -107,7 +107,7 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
107
107
|
return target;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
const version = "1.
|
|
110
|
+
const version = "1.21.1";
|
|
111
111
|
|
|
112
112
|
/** @import VJSPlayer from 'video.js/dist/types/player' */
|
|
113
113
|
/** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
|
|
@@ -2627,7 +2627,8 @@ class MediaComposition {
|
|
|
2627
2627
|
*/
|
|
2628
2628
|
getChapters() {
|
|
2629
2629
|
const AUDIO = 'AUDIO';
|
|
2630
|
-
|
|
2630
|
+
const EPISODE = 'EPISODE';
|
|
2631
|
+
if (this.getMainChapter().mediaType === AUDIO || this.getMainChapter().type !== EPISODE) return [];
|
|
2631
2632
|
return this.chapterList.filter(({
|
|
2632
2633
|
mediaType
|
|
2633
2634
|
}) => mediaType !== AUDIO);
|