@srgssr/pillarbox-web 1.33.0 → 1.34.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.
- package/dist/pillarbox-core.cjs +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs +8 -5
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +8 -5
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +8 -5
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +9 -9
- 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-core.cjs
CHANGED
package/dist/pillarbox.cjs
CHANGED
|
@@ -94,7 +94,7 @@ function _toPropertyKey(t) {
|
|
|
94
94
|
return "symbol" == typeof i ? i : i + "";
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
const version = "1.
|
|
97
|
+
const version = "1.33.1";
|
|
98
98
|
|
|
99
99
|
/** @import VJSPlayer from 'video.js/dist/types/player' */
|
|
100
100
|
/** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
|
|
@@ -1428,7 +1428,7 @@ class SRGAnalytics {
|
|
|
1428
1428
|
getInternalLabels() {
|
|
1429
1429
|
const data = {
|
|
1430
1430
|
media_bu_distributer: this.srcMediaData.mediaData.vendor,
|
|
1431
|
-
|
|
1431
|
+
media_google_cast: this.player.tech(true).name() === 'PillarboxReceiver',
|
|
1432
1432
|
media_embedding_url: document.referrer,
|
|
1433
1433
|
media_player_display: 'default',
|
|
1434
1434
|
// TODO implement if it still relevant
|
|
@@ -1741,7 +1741,7 @@ class SRGAnalytics {
|
|
|
1741
1741
|
* Sent to ComScore when the playback rate changes.
|
|
1742
1742
|
*
|
|
1743
1743
|
* @see https://github.com/SRGSSR/srgletterbox-web/issues/761
|
|
1744
|
-
* @see https://srgssr-ch.atlassian.net/browse/ADI-256
|
|
1744
|
+
* @see https://srgssr-ch.atlassian.net/browse/ADI-256
|
|
1745
1745
|
*/
|
|
1746
1746
|
rateChange() {
|
|
1747
1747
|
this.notify('change_playback_rate');
|
|
@@ -1835,7 +1835,7 @@ class SRGAnalytics {
|
|
|
1835
1835
|
* It's expected notifyBufferStart() to be called when the player starts buffering
|
|
1836
1836
|
* and a call to notifyBufferStop() when content resumes after buffering.
|
|
1837
1837
|
*
|
|
1838
|
-
* @see Item 2: https://srgssr-ch.atlassian.net/browse/PLAY-2628
|
|
1838
|
+
* @see Item 2: https://srgssr-ch.atlassian.net/browse/PLAY-2628
|
|
1839
1839
|
*
|
|
1840
1840
|
* After the issue PLAYRTS-321
|
|
1841
1841
|
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-321?focusedCommentId=201023&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-201023
|
|
@@ -2836,8 +2836,11 @@ class MediaComposition {
|
|
|
2836
2836
|
const EPISODE = 'EPISODE';
|
|
2837
2837
|
if (this.getMainChapter().mediaType === AUDIO || this.getMainChapter().type !== EPISODE) return [];
|
|
2838
2838
|
return this.chapterList.filter(({
|
|
2839
|
+
fullLengthUrn,
|
|
2839
2840
|
mediaType
|
|
2840
|
-
}) =>
|
|
2841
|
+
}) => {
|
|
2842
|
+
return this.getMainChapter().urn === fullLengthUrn && this.getMainChapter().mediaType === mediaType;
|
|
2843
|
+
});
|
|
2841
2844
|
}
|
|
2842
2845
|
|
|
2843
2846
|
/**
|