@italia/video 1.0.0-beta.6 → 1.0.0-beta.7
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/src/it-video.d.ts.map +1 -1
- package/dist/src/it-video.js +172 -57
- package/dist/src/it-video.js.map +1 -1
- package/package.json +12 -12
- package/styles/globals.scss +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it-video.d.ts","sourceRoot":"","sources":["../../src/it-video.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKlE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAQvF,qBACa,OAAQ,SAAQ,sBAAsB;IACjD,MAAM,CAAC,MAAM,iCAAY;IAEzB,OAAO,CAAC,OAAO,CAAoD;IAEvC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAe;IAE3B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAGnE,QAAQ,SAAQ;IAE2B,YAAY,EAAE,mBAAmB,CAAkB;IAEnE,KAAK,EAAE,KAAK,CAAM;IAEjB,cAAc,CAAC,EAAE,cAAc,CAAM;IAGjE,eAAe,SAAM;IAGrB,OAAO,CAAC,MAAM,CAAa;IAG3B,OAAO,CAAC,YAAY,CAAa;IAGjC,OAAO,CAAC,eAAe,CAAkB;IAElC,SAAS;IAIhB;;OAEG;IACH,OAAO,KAAK,aAAa,GAGxB;IAKD,YAAY;IAUZ,kBAAkB;IAUlB,aAAa;IAQb,aAAa,CAAC,QAAQ,GAAE,OAAe;IAoBvC,iBAAiB;IAKjB,eAAe;
|
|
1
|
+
{"version":3,"file":"it-video.d.ts","sourceRoot":"","sources":["../../src/it-video.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAKlE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAQvF,qBACa,OAAQ,SAAQ,sBAAsB;IACjD,MAAM,CAAC,MAAM,iCAAY;IAEzB,OAAO,CAAC,OAAO,CAAoD;IAEvC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAe;IAE3B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAGnE,QAAQ,SAAQ;IAE2B,YAAY,EAAE,mBAAmB,CAAkB;IAEnE,KAAK,EAAE,KAAK,CAAM;IAEjB,cAAc,CAAC,EAAE,cAAc,CAAM;IAGjE,eAAe,SAAM;IAGrB,OAAO,CAAC,MAAM,CAAa;IAG3B,OAAO,CAAC,YAAY,CAAa;IAGjC,OAAO,CAAC,eAAe,CAAkB;IAElC,SAAS;IAIhB;;OAEG;IACH,OAAO,KAAK,aAAa,GAGxB;IAKD,YAAY;IAUZ,kBAAkB;IAUlB,aAAa;IAQb,aAAa,CAAC,QAAQ,GAAE,OAAe;IAoBvC,iBAAiB;IAKjB,eAAe;IAqBf,eAAe,CAAC,eAAe,GAAE,OAAe;IAmFhD,YAAY;IAKZ,UAAU,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAQ9C,MAAM;IAoCN,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;CAO7B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACpC;IACD,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
package/dist/src/it-video.js
CHANGED
|
@@ -11682,7 +11682,7 @@ function requireLib () {
|
|
|
11682
11682
|
|
|
11683
11683
|
var libExports = requireLib();
|
|
11684
11684
|
|
|
11685
|
-
/*! @name mpd-parser @version 1.
|
|
11685
|
+
/*! @name mpd-parser @version 1.4.0 @license Apache-2.0 */
|
|
11686
11686
|
|
|
11687
11687
|
const isObject$1 = obj => {
|
|
11688
11688
|
return !!obj && typeof obj === 'object';
|
|
@@ -12718,6 +12718,13 @@ const formatVideoPlaylist = ({
|
|
|
12718
12718
|
|
|
12719
12719
|
if (attributes.frameRate) {
|
|
12720
12720
|
playlist.attributes['FRAME-RATE'] = attributes.frameRate;
|
|
12721
|
+
} // qualityRanking is inversely related to quality (higher value = lower quality)
|
|
12722
|
+
// so SCORE is calculated as 1/(qualityRanking+1) (higher SCORE = higher quality)
|
|
12723
|
+
// The +1 ensures we avoid division by zero when qualityRanking is 0
|
|
12724
|
+
|
|
12725
|
+
|
|
12726
|
+
if (attributes.qualityRanking !== undefined) {
|
|
12727
|
+
playlist.attributes.SCORE = 1 / (attributes.qualityRanking + 1);
|
|
12721
12728
|
}
|
|
12722
12729
|
|
|
12723
12730
|
if (attributes.contentProtection) {
|
|
@@ -13657,6 +13664,34 @@ const parsers = {
|
|
|
13657
13664
|
return parseInt(value, 10);
|
|
13658
13665
|
},
|
|
13659
13666
|
|
|
13667
|
+
/**
|
|
13668
|
+
* Specifies the quality ranking of the representation relative to others in the same
|
|
13669
|
+
* adaptation set. This is inversely related to quality - higher values represent
|
|
13670
|
+
* lower quality content (e.g., 1 = highest quality, 10 = lowest quality).
|
|
13671
|
+
*
|
|
13672
|
+
* @param {string} value
|
|
13673
|
+
* value of the attribute as a string
|
|
13674
|
+
*
|
|
13675
|
+
* @return {number}
|
|
13676
|
+
* The parsed qualityRanking
|
|
13677
|
+
*/
|
|
13678
|
+
qualityRanking(value) {
|
|
13679
|
+
return parseInt(value, 10);
|
|
13680
|
+
},
|
|
13681
|
+
|
|
13682
|
+
/**
|
|
13683
|
+
* Alias for qualityRanking to handle lowercase attribute names from HTML DOM.
|
|
13684
|
+
*
|
|
13685
|
+
* @param {string} value
|
|
13686
|
+
* value of the attribute as a string
|
|
13687
|
+
*
|
|
13688
|
+
* @return {number}
|
|
13689
|
+
* The parsed qualityRanking
|
|
13690
|
+
*/
|
|
13691
|
+
qualityranking(value) {
|
|
13692
|
+
return parseInt(value, 10);
|
|
13693
|
+
},
|
|
13694
|
+
|
|
13660
13695
|
/**
|
|
13661
13696
|
* Default parser for all other attributes. Acts as a no-op and just returns the value
|
|
13662
13697
|
* as a string
|
|
@@ -13671,6 +13706,16 @@ const parsers = {
|
|
|
13671
13706
|
}
|
|
13672
13707
|
|
|
13673
13708
|
};
|
|
13709
|
+
/**
|
|
13710
|
+
* Maps lowercase attribute names to their camelCase equivalents for internal use.
|
|
13711
|
+
* HTML DOM converts attributes to lowercase, but we want to maintain camelCase
|
|
13712
|
+
* naming conventions in the parsed output. XML parsers like xmldom preserve
|
|
13713
|
+
* the original casing.
|
|
13714
|
+
*/
|
|
13715
|
+
|
|
13716
|
+
const attributeNameMap = {
|
|
13717
|
+
qualityranking: 'qualityRanking'
|
|
13718
|
+
};
|
|
13674
13719
|
/**
|
|
13675
13720
|
* Gets all the attributes and values of the provided node, parses attributes with known
|
|
13676
13721
|
* types, and returns an object with attribute names mapped to values.
|
|
@@ -13688,7 +13733,8 @@ const parseAttributes = el => {
|
|
|
13688
13733
|
|
|
13689
13734
|
return from(el.attributes).reduce((a, e) => {
|
|
13690
13735
|
const parseFn = parsers[e.name] || parsers.DEFAULT;
|
|
13691
|
-
|
|
13736
|
+
const attributeName = attributeNameMap[e.name] || e.name;
|
|
13737
|
+
a[attributeName] = parseFn(e.value);
|
|
13692
13738
|
return a;
|
|
13693
13739
|
}, {});
|
|
13694
13740
|
};
|
|
@@ -14961,7 +15007,9 @@ var CONSTANTS = {
|
|
|
14961
15007
|
// moov string literal in hex
|
|
14962
15008
|
'moov': toUint8([0x6D, 0x6F, 0x6F, 0x76]),
|
|
14963
15009
|
// moof string literal in hex
|
|
14964
|
-
'moof': toUint8([0x6D, 0x6F, 0x6F, 0x66])
|
|
15010
|
+
'moof': toUint8([0x6D, 0x6F, 0x6F, 0x66]),
|
|
15011
|
+
// "WEBVTT" string literal in hex
|
|
15012
|
+
'vtt': toUint8([0x57, 0x45, 0x42, 0x56, 0x54, 0x54])
|
|
14965
15013
|
};
|
|
14966
15014
|
var _isLikely = {
|
|
14967
15015
|
aac: function aac(bytes) {
|
|
@@ -15028,6 +15076,10 @@ var _isLikely = {
|
|
|
15028
15076
|
offset: offset
|
|
15029
15077
|
});
|
|
15030
15078
|
},
|
|
15079
|
+
// Must be checked before ts. The sorting of isLikelyTypes ensures this.
|
|
15080
|
+
vtt: function vtt(bytes) {
|
|
15081
|
+
return bytesMatch(bytes, CONSTANTS.vtt);
|
|
15082
|
+
},
|
|
15031
15083
|
ts: function ts(bytes) {
|
|
15032
15084
|
if (bytes.length < 189 && bytes.length >= 1) {
|
|
15033
15085
|
return bytes[0] === 0x47;
|
|
@@ -15183,7 +15235,7 @@ var clockExports = requireClock();
|
|
|
15183
15235
|
|
|
15184
15236
|
/**
|
|
15185
15237
|
* @license
|
|
15186
|
-
* Video.js 8.
|
|
15238
|
+
* Video.js 8.24.2 <http://videojs.com/>
|
|
15187
15239
|
* Copyright 2010-present Video.js contributors
|
|
15188
15240
|
* Available under Apache License Version 2.0
|
|
15189
15241
|
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
|
@@ -15194,7 +15246,7 @@ var clockExports = requireClock();
|
|
|
15194
15246
|
*/
|
|
15195
15247
|
|
|
15196
15248
|
|
|
15197
|
-
var version$6 = "8.
|
|
15249
|
+
var version$6 = "8.24.2";
|
|
15198
15250
|
|
|
15199
15251
|
/**
|
|
15200
15252
|
* An Object that contains lifecycle hooks as keys which point to an array
|
|
@@ -26155,6 +26207,10 @@ class PosterImage extends ClickableComponent {
|
|
|
26155
26207
|
*/
|
|
26156
26208
|
constructor(player, options) {
|
|
26157
26209
|
super(player, options);
|
|
26210
|
+
const {
|
|
26211
|
+
mainContent
|
|
26212
|
+
} = options && options.playerOptions || {};
|
|
26213
|
+
this.isMainContent = mainContent;
|
|
26158
26214
|
this.update();
|
|
26159
26215
|
this.update_ = e => this.update(e);
|
|
26160
26216
|
player.on('posterchange', this.update_);
|
|
@@ -26257,7 +26313,8 @@ class PosterImage extends ClickableComponent {
|
|
|
26257
26313
|
// Don't want poster to be tabbable.
|
|
26258
26314
|
tabIndex: -1
|
|
26259
26315
|
}, {}, createEl('img', {
|
|
26260
|
-
loading: 'lazy',
|
|
26316
|
+
loading: this.isMainContent ? 'eager' : 'lazy',
|
|
26317
|
+
fetchPriority: this.isMainContent ? 'high' : 'auto',
|
|
26261
26318
|
crossOrigin: this.crossOrigin()
|
|
26262
26319
|
}, {
|
|
26263
26320
|
alt: ''
|
|
@@ -26282,7 +26339,17 @@ class PosterImage extends ClickableComponent {
|
|
|
26282
26339
|
if (!this.player_.controls()) {
|
|
26283
26340
|
return;
|
|
26284
26341
|
}
|
|
26285
|
-
|
|
26342
|
+
|
|
26343
|
+
// On Microsoft Edge, moving focus to the <video> (tech) element as playback
|
|
26344
|
+
// starts prevents a protected (DRM/EME) video surface from being presented:
|
|
26345
|
+
// audio plays but the frame stays black until a later repaint or focus change.
|
|
26346
|
+
// Focus the control-bar play toggle instead of the tech on Edge. See
|
|
26347
|
+
// https://github.com/videojs/video.js/issues/6270.
|
|
26348
|
+
const cb = this.player_.getChild('controlBar');
|
|
26349
|
+
const playToggle = cb && cb.getChild('playToggle');
|
|
26350
|
+
if (IS_EDGE) {
|
|
26351
|
+
(playToggle || this.player_).focus();
|
|
26352
|
+
} else if (this.player_.tech(true)) {
|
|
26286
26353
|
this.player_.tech(true).focus();
|
|
26287
26354
|
}
|
|
26288
26355
|
if (this.player_.paused()) {
|
|
@@ -26979,17 +27046,28 @@ class BigPlayButton extends Button {
|
|
|
26979
27046
|
*/
|
|
26980
27047
|
handleClick(event) {
|
|
26981
27048
|
const playPromise = this.player_.play();
|
|
27049
|
+
const cb = this.player_.getChild('controlBar');
|
|
27050
|
+
const playToggle = cb && cb.getChild('playToggle');
|
|
26982
27051
|
|
|
26983
27052
|
// exit early if tapped or clicked via the mouse
|
|
26984
27053
|
if (event.type === 'tap' || this.mouseused_ && 'clientX' in event && 'clientY' in event) {
|
|
26985
27054
|
silencePromise(playPromise);
|
|
26986
|
-
|
|
27055
|
+
|
|
27056
|
+
// On Microsoft Edge, moving focus to the <video> (tech) element as playback
|
|
27057
|
+
// starts prevents a protected (DRM/EME) video surface from being presented:
|
|
27058
|
+
// audio plays but the frame stays black until a later repaint or focus change.
|
|
27059
|
+
// Focus the control-bar play toggle instead of the tech on Edge, mirroring the
|
|
27060
|
+
// keyboard branch below. This is the pointer-path counterpart to the fix for
|
|
27061
|
+
// https://github.com/videojs/video.js/issues/6270 (#6318/#6508 redirected only
|
|
27062
|
+
// the keyboard path; the mouse/tap tech.focus() survived and regressed on
|
|
27063
|
+
// Chromium Edge with hardware-accelerated DRM).
|
|
27064
|
+
if (IS_EDGE) {
|
|
27065
|
+
(playToggle || this.player_).focus();
|
|
27066
|
+
} else if (this.player_.tech(true)) {
|
|
26987
27067
|
this.player_.tech(true).focus();
|
|
26988
27068
|
}
|
|
26989
27069
|
return;
|
|
26990
27070
|
}
|
|
26991
|
-
const cb = this.player_.getChild('controlBar');
|
|
26992
|
-
const playToggle = cb && cb.getChild('playToggle');
|
|
26993
27071
|
if (!playToggle) {
|
|
26994
27072
|
this.player_.tech(true).focus();
|
|
26995
27073
|
return;
|
|
@@ -27134,7 +27212,7 @@ Component$1.registerComponent('CloseButton', CloseButton);
|
|
|
27134
27212
|
* @file play-toggle.js
|
|
27135
27213
|
*/
|
|
27136
27214
|
|
|
27137
|
-
/** @import Player from '
|
|
27215
|
+
/** @import Player from '../player' */
|
|
27138
27216
|
|
|
27139
27217
|
/**
|
|
27140
27218
|
* Button to toggle between play and pause.
|
|
@@ -27701,7 +27779,7 @@ Component$1.registerComponent('RemainingTimeDisplay', RemainingTimeDisplay);
|
|
|
27701
27779
|
* @file live-display.js
|
|
27702
27780
|
*/
|
|
27703
27781
|
|
|
27704
|
-
/** @import Player from '
|
|
27782
|
+
/** @import Player from '../player' */
|
|
27705
27783
|
|
|
27706
27784
|
// TODO - Future make it click to snap to live
|
|
27707
27785
|
|
|
@@ -27777,7 +27855,7 @@ Component$1.registerComponent('LiveDisplay', LiveDisplay);
|
|
|
27777
27855
|
* @file seek-to-live.js
|
|
27778
27856
|
*/
|
|
27779
27857
|
|
|
27780
|
-
/** @import Player from '
|
|
27858
|
+
/** @import Player from '../player' */
|
|
27781
27859
|
|
|
27782
27860
|
/**
|
|
27783
27861
|
* Displays the live indicator when duration is Infinity.
|
|
@@ -29434,7 +29512,7 @@ Component$1.registerComponent('ProgressControl', ProgressControl);
|
|
|
29434
29512
|
* @file picture-in-picture-toggle.js
|
|
29435
29513
|
*/
|
|
29436
29514
|
|
|
29437
|
-
/** @import Player from '
|
|
29515
|
+
/** @import Player from '../player' */
|
|
29438
29516
|
|
|
29439
29517
|
/**
|
|
29440
29518
|
* Toggle Picture-in-Picture mode
|
|
@@ -29576,7 +29654,7 @@ Component$1.registerComponent('PictureInPictureToggle', PictureInPictureToggle);
|
|
|
29576
29654
|
* @file fullscreen-toggle.js
|
|
29577
29655
|
*/
|
|
29578
29656
|
|
|
29579
|
-
/** @import Player from '
|
|
29657
|
+
/** @import Player from '../player' */
|
|
29580
29658
|
|
|
29581
29659
|
/**
|
|
29582
29660
|
* Toggle fullscreen video
|
|
@@ -30268,7 +30346,7 @@ const checkMuteSupport = function (self, player) {
|
|
|
30268
30346
|
* @file mute-toggle.js
|
|
30269
30347
|
*/
|
|
30270
30348
|
|
|
30271
|
-
/** @import Player from '
|
|
30349
|
+
/** @import Player from '../player' */
|
|
30272
30350
|
|
|
30273
30351
|
/**
|
|
30274
30352
|
* A button component for muting the audio.
|
|
@@ -31376,7 +31454,7 @@ Component$1.registerComponent('MenuButton', MenuButton);
|
|
|
31376
31454
|
* @file track-button.js
|
|
31377
31455
|
*/
|
|
31378
31456
|
|
|
31379
|
-
/** @import Player from '
|
|
31457
|
+
/** @import Player from '../player' */
|
|
31380
31458
|
|
|
31381
31459
|
/**
|
|
31382
31460
|
* The base class for buttons that toggle specific track types (e.g. subtitles).
|
|
@@ -31402,16 +31480,47 @@ class TrackButton extends MenuButton {
|
|
|
31402
31480
|
if (!tracks) {
|
|
31403
31481
|
return;
|
|
31404
31482
|
}
|
|
31405
|
-
|
|
31406
|
-
|
|
31407
|
-
tracks.addEventListener('
|
|
31408
|
-
tracks.addEventListener('
|
|
31409
|
-
|
|
31410
|
-
this.player_.on('
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
|
|
31483
|
+
this.updateHandler_ = bind_(this, this.update);
|
|
31484
|
+
this.cleanupHandler_ = bind_(this, this.cleanupTrackListeners_);
|
|
31485
|
+
tracks.addEventListener('removetrack', this.updateHandler_);
|
|
31486
|
+
tracks.addEventListener('addtrack', this.updateHandler_);
|
|
31487
|
+
tracks.addEventListener('labelchange', this.updateHandler_);
|
|
31488
|
+
this.player_.on('ready', this.updateHandler_);
|
|
31489
|
+
this.player_.on('dispose', this.cleanupHandler_);
|
|
31490
|
+
}
|
|
31491
|
+
|
|
31492
|
+
/**
|
|
31493
|
+
* Remove all track list event listeners without triggering a full dispose.
|
|
31494
|
+
* Used as the player 'dispose' handler and called by dispose() before super.
|
|
31495
|
+
*
|
|
31496
|
+
* @private
|
|
31497
|
+
*/
|
|
31498
|
+
cleanupTrackListeners_() {
|
|
31499
|
+
if (!this.updateHandler_) {
|
|
31500
|
+
return;
|
|
31501
|
+
}
|
|
31502
|
+
const tracks = this.options_.tracks;
|
|
31503
|
+
if (tracks) {
|
|
31504
|
+
tracks.removeEventListener('removetrack', this.updateHandler_);
|
|
31505
|
+
tracks.removeEventListener('addtrack', this.updateHandler_);
|
|
31506
|
+
tracks.removeEventListener('labelchange', this.updateHandler_);
|
|
31507
|
+
}
|
|
31508
|
+
if (this.player_) {
|
|
31509
|
+
this.player_.off('ready', this.updateHandler_);
|
|
31510
|
+
this.player_.off('dispose', this.cleanupHandler_);
|
|
31511
|
+
}
|
|
31512
|
+
this.updateHandler_ = null;
|
|
31513
|
+
this.cleanupHandler_ = null;
|
|
31514
|
+
}
|
|
31515
|
+
|
|
31516
|
+
/**
|
|
31517
|
+
* Dispose of the Component and remove all event listeners.
|
|
31518
|
+
*
|
|
31519
|
+
* @override
|
|
31520
|
+
*/
|
|
31521
|
+
dispose() {
|
|
31522
|
+
this.cleanupTrackListeners_();
|
|
31523
|
+
super.dispose();
|
|
31415
31524
|
}
|
|
31416
31525
|
}
|
|
31417
31526
|
Component$1.registerComponent('TrackButton', TrackButton);
|
|
@@ -32601,7 +32710,7 @@ class AudioTrackMenuItem extends MenuItem {
|
|
|
32601
32710
|
createEl(type, props, attrs) {
|
|
32602
32711
|
const el = super.createEl(type, props, attrs);
|
|
32603
32712
|
const parentSpan = el.querySelector('.vjs-menu-item-text');
|
|
32604
|
-
if (['main-desc', 'descriptions'].indexOf(this.options_.track.kind) >= 0) {
|
|
32713
|
+
if (['main-desc', 'descriptions', 'description'].indexOf(this.options_.track.kind) >= 0) {
|
|
32605
32714
|
parentSpan.appendChild(createEl('span', {
|
|
32606
32715
|
className: 'vjs-icon-placeholder'
|
|
32607
32716
|
}, {
|
|
@@ -33138,7 +33247,7 @@ ErrorDisplay.prototype.options_ = Object.assign({}, ModalDialog.prototype.option
|
|
|
33138
33247
|
});
|
|
33139
33248
|
Component$1.registerComponent('ErrorDisplay', ErrorDisplay);
|
|
33140
33249
|
|
|
33141
|
-
/** @import Player from '
|
|
33250
|
+
/** @import Player from '../player' */
|
|
33142
33251
|
/** @import { ContentDescriptor } from '../utils/dom' */
|
|
33143
33252
|
|
|
33144
33253
|
/**
|
|
@@ -33204,7 +33313,7 @@ class TextTrackSelect extends Component$1 {
|
|
|
33204
33313
|
}
|
|
33205
33314
|
Component$1.registerComponent('TextTrackSelect', TextTrackSelect);
|
|
33206
33315
|
|
|
33207
|
-
/** @import Player from '
|
|
33316
|
+
/** @import Player from '../player' */
|
|
33208
33317
|
/** @import { ContentDescriptor } from '../utils/dom' */
|
|
33209
33318
|
|
|
33210
33319
|
/**
|
|
@@ -33322,7 +33431,7 @@ class TextTrackFieldset extends Component$1 {
|
|
|
33322
33431
|
}
|
|
33323
33432
|
Component$1.registerComponent('TextTrackFieldset', TextTrackFieldset);
|
|
33324
33433
|
|
|
33325
|
-
/** @import Player from '
|
|
33434
|
+
/** @import Player from '../player' */
|
|
33326
33435
|
/** @import { ContentDescriptor } from '../utils/dom' */
|
|
33327
33436
|
|
|
33328
33437
|
/**
|
|
@@ -33409,7 +33518,7 @@ class TextTrackSettingsColors extends Component$1 {
|
|
|
33409
33518
|
}
|
|
33410
33519
|
Component$1.registerComponent('TextTrackSettingsColors', TextTrackSettingsColors);
|
|
33411
33520
|
|
|
33412
|
-
/** @import Player from '
|
|
33521
|
+
/** @import Player from '../player' */
|
|
33413
33522
|
/** @import { ContentDescriptor } from '../utils/dom' */
|
|
33414
33523
|
|
|
33415
33524
|
/**
|
|
@@ -40745,13 +40854,13 @@ class Player extends Component$1 {
|
|
|
40745
40854
|
}
|
|
40746
40855
|
|
|
40747
40856
|
/**
|
|
40748
|
-
* Set or get the current MediaError
|
|
40857
|
+
* Set, clear, or get the current MediaError
|
|
40749
40858
|
*
|
|
40750
40859
|
* @fires Player#error
|
|
40751
40860
|
*
|
|
40752
|
-
* @param {MediaError|string|number} [err]
|
|
40861
|
+
* @param {MediaError|string|number|null} [err]
|
|
40753
40862
|
* A MediaError or a string/number to be turned
|
|
40754
|
-
* into a MediaError
|
|
40863
|
+
* into a MediaError. Pass `null` to clear the current error state.
|
|
40755
40864
|
*
|
|
40756
40865
|
* @return {MediaError|null|undefined}
|
|
40757
40866
|
* - The current MediaError when getting (or null)
|
|
@@ -41486,7 +41595,7 @@ class Player extends Component$1 {
|
|
|
41486
41595
|
if (breakpoints === undefined) {
|
|
41487
41596
|
return Object.assign(this.breakpoints_);
|
|
41488
41597
|
}
|
|
41489
|
-
this.
|
|
41598
|
+
this.removeCurrentBreakpoint_();
|
|
41490
41599
|
this.breakpoints_ = Object.assign({}, DEFAULT_BREAKPOINTS, breakpoints);
|
|
41491
41600
|
|
|
41492
41601
|
// When breakpoint definitions change, we need to update the currently
|
|
@@ -43406,7 +43515,7 @@ videojs.registerPlugin('qualityLevels', qualityLevels);
|
|
|
43406
43515
|
// Include the version number.
|
|
43407
43516
|
qualityLevels.VERSION = version$5;
|
|
43408
43517
|
|
|
43409
|
-
/*! @name @videojs/http-streaming @version 3.17.
|
|
43518
|
+
/*! @name @videojs/http-streaming @version 3.17.5 @license Apache-2.0 */
|
|
43410
43519
|
|
|
43411
43520
|
/**
|
|
43412
43521
|
* @file resolve-url.js - Handling how URLs are resolved and manipulated
|
|
@@ -62445,7 +62554,7 @@ class SourceUpdater extends videojs.EventTarget {
|
|
|
62445
62554
|
pushQueue({
|
|
62446
62555
|
type,
|
|
62447
62556
|
sourceUpdater: this,
|
|
62448
|
-
action: actions.abort(
|
|
62557
|
+
action: actions.abort(),
|
|
62449
62558
|
name: 'abort'
|
|
62450
62559
|
});
|
|
62451
62560
|
}
|
|
@@ -69259,9 +69368,9 @@ const initPlugin = function (player, options) {
|
|
|
69259
69368
|
const reloadSourceOnError = function (options) {
|
|
69260
69369
|
initPlugin(this, options);
|
|
69261
69370
|
};
|
|
69262
|
-
var version$4 = "3.17.
|
|
69371
|
+
var version$4 = "3.17.5";
|
|
69263
69372
|
var version$3 = "7.1.0";
|
|
69264
|
-
var version$2 = "1.
|
|
69373
|
+
var version$2 = "1.4.0";
|
|
69265
69374
|
var version$1 = "7.2.0";
|
|
69266
69375
|
var version = "4.0.2";
|
|
69267
69376
|
const Vhs = {
|
|
@@ -71637,7 +71746,7 @@ if (typeof window !== 'undefined') {
|
|
|
71637
71746
|
window._itAnalytics = window._itAnalytics || {};
|
|
71638
71747
|
window._itAnalytics = {
|
|
71639
71748
|
...window._itAnalytics,
|
|
71640
|
-
version: '1.0.0-beta.
|
|
71749
|
+
version: '1.0.0-beta.7',
|
|
71641
71750
|
};
|
|
71642
71751
|
}
|
|
71643
71752
|
|
|
@@ -73211,8 +73320,8 @@ body.vjs-pip-window .video-js {
|
|
|
73211
73320
|
.video-js:hover .vjs-big-play-button,
|
|
73212
73321
|
.video-js .vjs-big-play-button:focus {
|
|
73213
73322
|
border-color: #fff;
|
|
73214
|
-
background-color: rgb(
|
|
73215
|
-
background-color: rgba(
|
|
73323
|
+
background-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
73324
|
+
background-color: rgba(45.064372919%, 52.0403255642%, 62.504254532%, 0.5);
|
|
73216
73325
|
transition: all 0s;
|
|
73217
73326
|
}
|
|
73218
73327
|
|
|
@@ -73319,8 +73428,8 @@ body.vjs-pip-window .video-js {
|
|
|
73319
73428
|
.vjs-menu li.vjs-menu-item:focus,
|
|
73320
73429
|
.vjs-menu li.vjs-menu-item:hover,
|
|
73321
73430
|
.js-focus-visible .vjs-menu li.vjs-menu-item:hover {
|
|
73322
|
-
background-color: rgb(
|
|
73323
|
-
background-color: rgba(
|
|
73431
|
+
background-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
73432
|
+
background-color: rgba(45.064372919%, 52.0403255642%, 62.504254532%, 0.5);
|
|
73324
73433
|
}
|
|
73325
73434
|
|
|
73326
73435
|
.vjs-menu li.vjs-selected,
|
|
@@ -73619,11 +73728,11 @@ body.vjs-pip-window .video-js {
|
|
|
73619
73728
|
}
|
|
73620
73729
|
|
|
73621
73730
|
.video-js .vjs-load-progress {
|
|
73622
|
-
background: rgba(
|
|
73731
|
+
background: rgba(45.064372919%, 52.0403255642%, 62.504254532%, 0.5);
|
|
73623
73732
|
}
|
|
73624
73733
|
|
|
73625
73734
|
.video-js .vjs-load-progress div {
|
|
73626
|
-
background: rgba(
|
|
73735
|
+
background: rgba(45.064372919%, 52.0403255642%, 62.504254532%, 0.75);
|
|
73627
73736
|
}
|
|
73628
73737
|
|
|
73629
73738
|
.video-js .vjs-time-tooltip {
|
|
@@ -73699,8 +73808,8 @@ body.vjs-pip-window .video-js {
|
|
|
73699
73808
|
-webkit-user-select: none;
|
|
73700
73809
|
/* Non-prefixed version, currently supported by Chrome and Opera */
|
|
73701
73810
|
user-select: none;
|
|
73702
|
-
background-color: rgb(
|
|
73703
|
-
background-color: rgba(
|
|
73811
|
+
background-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
73812
|
+
background-color: rgba(45.064372919%, 52.0403255642%, 62.504254532%, 0.5);
|
|
73704
73813
|
}
|
|
73705
73814
|
|
|
73706
73815
|
.video-js .vjs-slider.disabled {
|
|
@@ -74232,19 +74341,19 @@ video::-webkit-media-text-track-display {
|
|
|
74232
74341
|
}
|
|
74233
74342
|
@keyframes vjs-spinner-fade {
|
|
74234
74343
|
0% {
|
|
74235
|
-
border-top-color: rgb(
|
|
74344
|
+
border-top-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
74236
74345
|
}
|
|
74237
74346
|
20% {
|
|
74238
|
-
border-top-color: rgb(
|
|
74347
|
+
border-top-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
74239
74348
|
}
|
|
74240
74349
|
35% {
|
|
74241
74350
|
border-top-color: white;
|
|
74242
74351
|
}
|
|
74243
74352
|
60% {
|
|
74244
|
-
border-top-color: rgb(
|
|
74353
|
+
border-top-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
74245
74354
|
}
|
|
74246
74355
|
100% {
|
|
74247
|
-
border-top-color: rgb(
|
|
74356
|
+
border-top-color: rgb(45.064372919%, 52.0403255642%, 62.504254532%);
|
|
74248
74357
|
}
|
|
74249
74358
|
}
|
|
74250
74359
|
.video-js.vjs-audio-only-mode .vjs-captions-button {
|
|
@@ -74288,6 +74397,7 @@ video::-webkit-media-text-track-display {
|
|
|
74288
74397
|
margin-bottom: -0.1em;
|
|
74289
74398
|
}
|
|
74290
74399
|
|
|
74400
|
+
.video-js .vjs-audio-button + .vjs-menu .vjs-description-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before,
|
|
74291
74401
|
.video-js .vjs-audio-button + .vjs-menu .vjs-descriptions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before,
|
|
74292
74402
|
.video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
|
|
74293
74403
|
font-family: VideoJS;
|
|
@@ -74411,7 +74521,7 @@ video::-webkit-media-text-track-display {
|
|
|
74411
74521
|
.vjs-track-settings-controls button:active {
|
|
74412
74522
|
outline-style: solid;
|
|
74413
74523
|
outline-width: medium;
|
|
74414
|
-
background-image: linear-gradient(0deg, #fff 88%, rgb(
|
|
74524
|
+
background-image: linear-gradient(0deg, #fff 88%, rgb(45.064372919%, 52.0403255642%, 62.504254532%) 100%);
|
|
74415
74525
|
}
|
|
74416
74526
|
|
|
74417
74527
|
.vjs-track-settings-controls button:hover {
|
|
@@ -74420,7 +74530,7 @@ video::-webkit-media-text-track-display {
|
|
|
74420
74530
|
|
|
74421
74531
|
.vjs-track-settings-controls button {
|
|
74422
74532
|
background-color: #fff;
|
|
74423
|
-
background-image: linear-gradient(-180deg, #fff 88%, rgb(
|
|
74533
|
+
background-image: linear-gradient(-180deg, #fff 88%, rgb(45.064372919%, 52.0403255642%, 62.504254532%) 100%);
|
|
74424
74534
|
color: #2B333F;
|
|
74425
74535
|
cursor: pointer;
|
|
74426
74536
|
border-radius: 2px;
|
|
@@ -74617,6 +74727,8 @@ video::-webkit-media-text-track-display {
|
|
|
74617
74727
|
--bsi-acceptoverlay-background-color: var(
|
|
74618
74728
|
--bsi-overlay-background-primary-muted
|
|
74619
74729
|
);
|
|
74730
|
+
--bsi-acceptoverlay-body-font-family: var(--bsi-font-serif);
|
|
74731
|
+
--bsi-acceptoverlay-body-font-size: var(--bsi-body-font-size);
|
|
74620
74732
|
--bsi-acceptoverlay-color-text: var(--bsi-color-text-inverse);
|
|
74621
74733
|
--bsi-acceptoverlay-label-color: var(--bsi-color-text-inverse);
|
|
74622
74734
|
--bsi-acceptoverlay-label-border-color: var(--bsi-color-border-inverse);
|
|
@@ -74690,6 +74802,8 @@ video::-webkit-media-text-track-display {
|
|
|
74690
74802
|
}
|
|
74691
74803
|
.acceptoverlay p {
|
|
74692
74804
|
text-align: justify;
|
|
74805
|
+
font-family: var(--bsi-acceptoverlay-body-font-family);
|
|
74806
|
+
font-size: var(--bsi-acceptoverlay-body-font-size);
|
|
74693
74807
|
}
|
|
74694
74808
|
.acceptoverlay .acceptoverlay-inner {
|
|
74695
74809
|
width: 100%;
|
|
@@ -74751,6 +74865,7 @@ video::-webkit-media-text-track-display {
|
|
|
74751
74865
|
}
|
|
74752
74866
|
|
|
74753
74867
|
.acceptoverlayable {
|
|
74868
|
+
width: 100%;
|
|
74754
74869
|
aspect-ratio: 16 / 9;
|
|
74755
74870
|
}
|
|
74756
74871
|
|
|
@@ -74900,8 +75015,8 @@ let ItVideo = class ItVideo extends BaseLocalizedComponent {
|
|
|
74900
75015
|
${isYoutube
|
|
74901
75016
|
? html `<div id="${this.videoId}" class="video-js" part="videoplayer"></div>`
|
|
74902
75017
|
: html `<video id="${this.videoId}" class="video-js" part="videoplayer">
|
|
74903
|
-
|
|
74904
|
-
|
|
75018
|
+
<source src="${this.src}" type="${this.type}" />
|
|
75019
|
+
</video>`}
|
|
74905
75020
|
<slot></slot>
|
|
74906
75021
|
</div>`
|
|
74907
75022
|
: '';
|