@gcorevideo/player 2.20.12 → 2.20.13
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/core.js +26 -2
- package/dist/index.css +1197 -1197
- package/dist/index.js +33 -19
- package/dist/player.d.ts +8 -10
- package/dist/plugins/index.css +1619 -1619
- package/dist/plugins/index.js +8 -13
- package/docs/api/player.md +1 -1
- package/docs/api/player.mediacontrol.md +2 -11
- package/docs/api/player.playbackerror.md +2 -2
- package/docs/api/player.playbackerror.origin.md +1 -1
- package/docs/api/player.playbackerror.scope.md +1 -1
- package/docs/api/player.poster.md +1 -1
- package/docs/api/player.sourcecontroller.md +2 -33
- package/lib/Player.js +1 -1
- package/lib/playback/HTML5Video.d.ts +5 -0
- package/lib/playback/HTML5Video.d.ts.map +1 -1
- package/lib/playback/HTML5Video.js +21 -0
- package/lib/playback/hls-playback/HlsPlayback.d.ts +2 -2
- package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +4 -0
- package/lib/playback.types.d.ts +2 -2
- package/lib/plugins/click-to-pause/ClickToPause.d.ts.map +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.js +0 -4
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +0 -1
- package/lib/plugins/media-control/MediaControl.d.ts +1 -8
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +2 -9
- package/lib/plugins/poster/Poster.d.ts +2 -0
- package/lib/plugins/poster/Poster.d.ts.map +1 -1
- package/lib/plugins/poster/Poster.js +3 -3
- package/lib/plugins/source-controller/SourceController.d.ts +3 -0
- package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +3 -0
- package/package.json +1 -1
- package/src/Player.ts +1 -1
- package/src/playback/HTML5Video.ts +29 -1
- package/src/playback/__tests__/HTML5Video.test.ts +47 -0
- package/src/playback/hls-playback/HlsPlayback.ts +5 -1
- package/src/playback.types.ts +2 -2
- package/src/plugins/click-to-pause/ClickToPause.ts +0 -5
- package/src/plugins/dvr-controls/DvrControls.ts +0 -1
- package/src/plugins/media-control/MediaControl.ts +2 -9
- package/src/plugins/poster/Poster.ts +4 -3
- package/src/plugins/source-controller/SourceController.ts +3 -0
- package/temp/player.api.json +6 -40
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.sourcecontroller._constructor_.md +0 -50
package/dist/core.js
CHANGED
|
@@ -42180,6 +42180,10 @@ class HlsPlayback extends BasePlayback {
|
|
|
42180
42180
|
details: data.details,
|
|
42181
42181
|
});
|
|
42182
42182
|
error.level = PlayerError.Levels.WARN;
|
|
42183
|
+
// TODO check
|
|
42184
|
+
// if (data.error instanceof MediaError && data.error.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
|
|
42185
|
+
// error.code = PlaybackErrorCode.MediaSourceUnavailable
|
|
42186
|
+
// }
|
|
42183
42187
|
this._recover(evt, data, error);
|
|
42184
42188
|
break;
|
|
42185
42189
|
default:
|
|
@@ -42531,6 +42535,26 @@ HlsPlayback.canPlay = function (resource, mimeType) {
|
|
|
42531
42535
|
};
|
|
42532
42536
|
|
|
42533
42537
|
class HTML5Video extends BasePlayback {
|
|
42538
|
+
/**
|
|
42539
|
+
* @internal
|
|
42540
|
+
*/
|
|
42541
|
+
createError(errorData, options) {
|
|
42542
|
+
const i18n = this.i18n ||
|
|
42543
|
+
// @ts-ignore
|
|
42544
|
+
(this.core && this.core.i18n) ||
|
|
42545
|
+
// @ts-ignore
|
|
42546
|
+
(this.container && this.container.i18n);
|
|
42547
|
+
if (i18n &&
|
|
42548
|
+
!errorData.UI &&
|
|
42549
|
+
errorData.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
|
|
42550
|
+
errorData.UI = {
|
|
42551
|
+
title: i18n.t('no_broadcast'),
|
|
42552
|
+
message: errorData.message,
|
|
42553
|
+
};
|
|
42554
|
+
errorData.code = PlaybackErrorCode.MediaSourceUnavailable;
|
|
42555
|
+
}
|
|
42556
|
+
return super.createError(errorData, { ...options, useCodePrefix: false });
|
|
42557
|
+
}
|
|
42534
42558
|
}
|
|
42535
42559
|
|
|
42536
42560
|
// TODO consider allowing the variation of the order of playback modules
|
|
@@ -42636,7 +42660,7 @@ class Player {
|
|
|
42636
42660
|
const coreOpts = this.buildCoreOptions(playerElement);
|
|
42637
42661
|
const { core, container } = Player.getRegisteredPlugins();
|
|
42638
42662
|
trace(`${T} init`, {
|
|
42639
|
-
registeredPlaybacks: Loader.registeredPlaybacks.map((p) => p.name),
|
|
42663
|
+
registeredPlaybacks: Loader.registeredPlaybacks.map((p) => p.prototype.name),
|
|
42640
42664
|
});
|
|
42641
42665
|
coreOpts.plugins = {
|
|
42642
42666
|
core: Object.values(core),
|
|
@@ -43004,7 +43028,7 @@ class Player {
|
|
|
43004
43028
|
}
|
|
43005
43029
|
}
|
|
43006
43030
|
|
|
43007
|
-
var version$1 = "2.20.
|
|
43031
|
+
var version$1 = "2.20.13";
|
|
43008
43032
|
|
|
43009
43033
|
var packages = {
|
|
43010
43034
|
"node_modules/@clappr/core": {
|