@srgssr/pillarbox-web 1.25.0 → 1.27.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 +19 -1
- package/dist/pillarbox-core.cjs.map +1 -1
- package/dist/pillarbox-core.es.js +19 -1
- package/dist/pillarbox-core.es.js.map +1 -1
- package/dist/pillarbox.cjs +44 -16
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +44 -16
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +44 -16
- 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/components/player.d.ts +11 -0
- package/dist/types/src/components/player.d.ts.map +1 -1
- package/dist/types/src/dataProvider/model/MediaComposition.d.ts +7 -1
- package/dist/types/src/dataProvider/model/MediaComposition.d.ts.map +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.26.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
|
|
|
@@ -71091,6 +71091,24 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
71091
71091
|
return ranges;
|
|
71092
71092
|
}
|
|
71093
71093
|
|
|
71094
|
+
/**
|
|
71095
|
+
* Overrides the default `src` behavior to ensure the underlying tech is fully
|
|
71096
|
+
* reset before setting a new source.
|
|
71097
|
+
*
|
|
71098
|
+
* This is a workaround for a Video.js issue where, under certain failure cases the
|
|
71099
|
+
* internal `src_` reload logic is not triggered. As a result, the previous media
|
|
71100
|
+
* can continue playing in the background even though the new source failed.
|
|
71101
|
+
*
|
|
71102
|
+
* @see https://docs.videojs.com/player#src
|
|
71103
|
+
*/
|
|
71104
|
+
src(source) {
|
|
71105
|
+
if (source) {
|
|
71106
|
+
this.poster(null);
|
|
71107
|
+
this.techCall_('reset');
|
|
71108
|
+
}
|
|
71109
|
+
super.src(source);
|
|
71110
|
+
}
|
|
71111
|
+
|
|
71094
71112
|
/**
|
|
71095
71113
|
* A getter/setter for the media's text track.
|
|
71096
71114
|
* Activates the text track according to the language and kind properties.
|
|
@@ -73600,6 +73618,8 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73600
73618
|
tokenType: resource.tokenType,
|
|
73601
73619
|
url: resource.url,
|
|
73602
73620
|
urn: this.chapterUrn,
|
|
73621
|
+
validFrom: this.getMainValidFromDate(),
|
|
73622
|
+
validTo: this.getMainValidToDate(),
|
|
73603
73623
|
vendor: this.getMainChapter().vendor
|
|
73604
73624
|
}));
|
|
73605
73625
|
}
|
|
@@ -73632,19 +73652,27 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
73632
73652
|
/**
|
|
73633
73653
|
* Compute a date from which this content is valid. Always return a date object.
|
|
73634
73654
|
*
|
|
73635
|
-
* @returns {Date} date specified in media composition or
|
|
73655
|
+
* @returns {Date} date specified in media composition or undefined.
|
|
73636
73656
|
*/
|
|
73637
73657
|
getMainValidFromDate() {
|
|
73638
|
-
const mainChapter = this.getMainChapter();
|
|
73639
|
-
if (!mainChapter) {
|
|
73640
|
-
return new Date(0);
|
|
73641
|
-
}
|
|
73642
73658
|
const {
|
|
73643
73659
|
validFrom
|
|
73644
|
-
} =
|
|
73645
|
-
if (validFrom)
|
|
73646
|
-
|
|
73647
|
-
|
|
73660
|
+
} = this.getMainChapter() || {};
|
|
73661
|
+
if (!validFrom) return;
|
|
73662
|
+
return new Date(validFrom);
|
|
73663
|
+
}
|
|
73664
|
+
|
|
73665
|
+
/**
|
|
73666
|
+
* Compute a date to which this content is valid. Always return a date object.
|
|
73667
|
+
*
|
|
73668
|
+
* @returns {Date} date specified in media composition or undefined.
|
|
73669
|
+
*/
|
|
73670
|
+
getMainValidToDate() {
|
|
73671
|
+
const {
|
|
73672
|
+
validTo
|
|
73673
|
+
} = this.getMainChapter() || {};
|
|
73674
|
+
if (!validTo) return;
|
|
73675
|
+
return new Date(validTo);
|
|
73648
73676
|
}
|
|
73649
73677
|
|
|
73650
73678
|
/**
|
|
@@ -74310,7 +74338,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
74310
74338
|
|
|
74311
74339
|
pillarbox.addLanguage('it', _objectSpread2(_objectSpread2({}, vjsLang), pillarboxLang$1));
|
|
74312
74340
|
|
|
74313
|
-
const Play = "
|
|
74341
|
+
const Play = "Start";
|
|
74314
74342
|
const Pause = "Pausa";
|
|
74315
74343
|
const Replay = "Mussar danovamain";
|
|
74316
74344
|
const Duration = "Durada";
|
|
@@ -74386,12 +74414,12 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|
|
74386
74414
|
"descriptions off": "senza descripziuns",
|
|
74387
74415
|
"Audio Track": "Piese audio",
|
|
74388
74416
|
"Volume Level": "Nivel dal volumen",
|
|
74389
|
-
"You aborted the media playback": "Vus avais interrut
|
|
74417
|
+
"You aborted the media playback": "Vus avais interrut la reproducziun",
|
|
74390
74418
|
"A network error caused the media download to fail part-way.": "In sbagl en la rait ha impedì il download",
|
|
74391
|
-
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il
|
|
74392
|
-
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "
|
|
74393
|
-
"No compatible source was found for this media.": "Chattà nagina funtauna cumpatibla per quest
|
|
74394
|
-
"The media is encrypted and we do not have the keys to decrypt it.": "Il
|
|
74419
|
+
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il medium n'ha betg pudì vegnir chargià u pervia d'in sbagl da server u da la rait, u perquai ch'il format n'è betg cumpatibel.",
|
|
74420
|
+
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducziun è vegnida interrutta u perquai ch'il cuntegn è donnegià, u perquai ch’il medium dovra funcziuns che voss navigatur na sustegna betg.",
|
|
74421
|
+
"No compatible source was found for this media.": "Chattà nagina funtauna cumpatibla per quest medium.",
|
|
74422
|
+
"The media is encrypted and we do not have the keys to decrypt it.": "Il medium è codà e nus n’avain naginas clavs per al decodar.",
|
|
74395
74423
|
"Play Video": "Aviar video",
|
|
74396
74424
|
Close,
|
|
74397
74425
|
"Close Modal Dialog": "Serrar la fanestra modala",
|