@srgssr/pillarbox-web 1.30.0 → 1.32.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/README.md +11 -0
- package/dist/pillarbox-core.cjs +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs +15 -8
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +15 -8
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +19 -12
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +2 -2
- package/dist/pillarbox.umd.min.js.map +1 -1
- package/dist/types/src/middleware/srgssr.d.ts.map +1 -1
- package/dist/types/src/middleware/typedef.d.ts +6 -0
- package/dist/types/src/middleware/typedef.d.ts.map +1 -1
- package/dist/types/src/trackers/SRGAnalytics.d.ts +5 -5
- package/dist/types/src/utils/Image.d.ts +1 -1
- package/package.json +1 -1
package/dist/pillarbox.umd.js
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
return "symbol" == typeof i ? i : i + "";
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const version$8 = "1.
|
|
96
|
+
const version$8 = "1.31.0";
|
|
97
97
|
|
|
98
98
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
99
99
|
|
|
@@ -7459,7 +7459,7 @@
|
|
|
7459
7459
|
function requireEntities () {
|
|
7460
7460
|
if (hasRequiredEntities) return entities;
|
|
7461
7461
|
hasRequiredEntities = 1;
|
|
7462
|
-
(function (exports) {
|
|
7462
|
+
(function (exports$1) {
|
|
7463
7463
|
|
|
7464
7464
|
var freeze = requireConventions().freeze;
|
|
7465
7465
|
|
|
@@ -7470,7 +7470,7 @@
|
|
|
7470
7470
|
* @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent W3C XML 1.0
|
|
7471
7471
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML Wikipedia
|
|
7472
7472
|
*/
|
|
7473
|
-
exports.XML_ENTITIES = freeze({
|
|
7473
|
+
exports$1.XML_ENTITIES = freeze({
|
|
7474
7474
|
amp: '&',
|
|
7475
7475
|
apos: "'",
|
|
7476
7476
|
gt: '>',
|
|
@@ -7492,7 +7492,7 @@
|
|
|
7492
7492
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML Wikipedia (HTML)
|
|
7493
7493
|
* @see https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Entities_representing_special_characters_in_XHTML Wikpedia (XHTML)
|
|
7494
7494
|
*/
|
|
7495
|
-
exports.HTML_ENTITIES = freeze({
|
|
7495
|
+
exports$1.HTML_ENTITIES = freeze({
|
|
7496
7496
|
Aacute: '\u00C1',
|
|
7497
7497
|
aacute: '\u00E1',
|
|
7498
7498
|
Abreve: '\u0102',
|
|
@@ -9624,7 +9624,7 @@
|
|
|
9624
9624
|
* @deprecated use `HTML_ENTITIES` instead
|
|
9625
9625
|
* @see HTML_ENTITIES
|
|
9626
9626
|
*/
|
|
9627
|
-
exports.entityMap = exports.HTML_ENTITIES;
|
|
9627
|
+
exports$1.entityMap = exports$1.HTML_ENTITIES;
|
|
9628
9628
|
} (entities));
|
|
9629
9629
|
return entities;
|
|
9630
9630
|
}
|
|
@@ -71331,7 +71331,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
71331
71331
|
* @property {String} [image.format=jpg] is the format of the image, default value jpg.
|
|
71332
71332
|
* @property {String} [imageServiceUrl] Url of the image service that needs to comply with the specification defined by the IL.
|
|
71333
71333
|
*
|
|
71334
|
-
* @see https://
|
|
71334
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/SRGPLAY/pages/799082429/Project+-+Image+Service
|
|
71335
71335
|
*
|
|
71336
71336
|
* @returns {String|undefined} the image scaling URL.
|
|
71337
71337
|
*/
|
|
@@ -72076,7 +72076,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
72076
72076
|
* - pos should be sent when the media player is in "play mode".
|
|
72077
72077
|
* - once the video is paused or stopped, the timer for sending these actions must be stopped.
|
|
72078
72078
|
*
|
|
72079
|
-
* @see https://
|
|
72079
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/INTFORSCHUNG/pages/795904171/standard+streaming+events+sequence+of+events+for+media+player+actions#mandatory-player-events
|
|
72080
72080
|
*/
|
|
72081
72081
|
heartBeat() {
|
|
72082
72082
|
this.heartBeatIntervalId = setInterval(() => {
|
|
@@ -72367,7 +72367,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
72367
72367
|
* Sent to ComScore when the playback rate changes.
|
|
72368
72368
|
*
|
|
72369
72369
|
* @see https://github.com/SRGSSR/srgletterbox-web/issues/761
|
|
72370
|
-
* @see https://
|
|
72370
|
+
* @see https://srgssr-ch.atlassian.net/browse/ADI-256
|
|
72371
72371
|
*/
|
|
72372
72372
|
rateChange() {
|
|
72373
72373
|
this.notify('change_playback_rate');
|
|
@@ -72461,11 +72461,11 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
72461
72461
|
* It's expected notifyBufferStart() to be called when the player starts buffering
|
|
72462
72462
|
* and a call to notifyBufferStop() when content resumes after buffering.
|
|
72463
72463
|
*
|
|
72464
|
-
* @see Item 2: https://
|
|
72464
|
+
* @see Item 2: https://srgssr-ch.atlassian.net/browse/PLAY-2628
|
|
72465
72465
|
*
|
|
72466
72466
|
* After the issue PLAYRTS-321
|
|
72467
|
-
* @see Fix: https://
|
|
72468
|
-
* @see Fix: https://
|
|
72467
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-321?focusedCommentId=201023&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-201023
|
|
72468
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-3065
|
|
72469
72469
|
*/
|
|
72470
72470
|
waiting() {
|
|
72471
72471
|
if (!this.initialized || this.isWaiting) {
|
|
@@ -74532,7 +74532,12 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
74532
74532
|
static addTextTrackCue(textTrack, data) {
|
|
74533
74533
|
const startTime = (Number.isFinite(data.markIn) ? data.markIn : data.fullLengthMarkIn) / 1000;
|
|
74534
74534
|
const endTime = (Number.isFinite(data.markOut) ? data.markOut : data.fullLengthMarkOut) / 1000;
|
|
74535
|
-
|
|
74535
|
+
const text = JSON.stringify(data);
|
|
74536
|
+
const cue = new VTTCue(startTime, endTime, text);
|
|
74537
|
+
if (data.urn) {
|
|
74538
|
+
cue.id = data.urn;
|
|
74539
|
+
}
|
|
74540
|
+
textTrack.addCue(cue);
|
|
74536
74541
|
}
|
|
74537
74542
|
|
|
74538
74543
|
/**
|
|
@@ -75061,6 +75066,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
75061
75066
|
if (!player.options().trackers.srgAnalytics) {
|
|
75062
75067
|
const srgAnalytics = new SRGAnalytics(player, {
|
|
75063
75068
|
debug: player.debug(),
|
|
75069
|
+
environment: player.options().srgOptions.analyticsEnvironment,
|
|
75064
75070
|
playerVersion: pillarbox.VERSION.pillarbox,
|
|
75065
75071
|
tagCommanderScriptURL: player.options().srgOptions.tagCommanderScriptURL
|
|
75066
75072
|
});
|
|
@@ -75154,6 +75160,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
75154
75160
|
dataProvider: undefined,
|
|
75155
75161
|
dataProviderHost: undefined,
|
|
75156
75162
|
dataProviderUrlHandler: undefined,
|
|
75163
|
+
analyticsEnvironment: undefined,
|
|
75157
75164
|
tagCommanderScriptURL: undefined
|
|
75158
75165
|
};
|
|
75159
75166
|
|