@gcorevideo/player 2.20.15 → 2.20.16
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 +6 -6
- package/dist/index.css +703 -703
- package/dist/index.js +6 -6
- package/dist/plugins/index.css +1201 -1201
- package/dist/plugins/index.js +1 -1
- package/lib/playback/HTML5Video.js +5 -5
- package/package.json +1 -1
- package/src/playback/HTML5Video.ts +5 -5
- package/tsconfig.tsbuildinfo +1 -1
package/dist/plugins/index.js
CHANGED
|
@@ -37249,7 +37249,7 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
37249
37249
|
|
|
37250
37250
|
const templateHtml$1 = "<ul class=\"context-menu-list\">\n <% if(options) { %>\n <% for (var i = 0; i < options.length; i++) { %>\n <li class=\"context-menu-list-item <%= options[i].class %>\"\n data-<%= options[i].name %>><%= options[i].label %></li>\n <% } %>\n <% } %>\n</ul>\n";
|
|
37251
37251
|
|
|
37252
|
-
var version$1 = "2.20.
|
|
37252
|
+
var version$1 = "2.20.16";
|
|
37253
37253
|
|
|
37254
37254
|
var packages = {
|
|
37255
37255
|
"node_modules/@clappr/core": {
|
|
@@ -8,7 +8,7 @@ export default class HTML5Video extends BasePlayback {
|
|
|
8
8
|
*/
|
|
9
9
|
createError(errorData, options) {
|
|
10
10
|
trace(`${T} createError`, {
|
|
11
|
-
errorData
|
|
11
|
+
errorData: structuredClone(errorData),
|
|
12
12
|
});
|
|
13
13
|
const i18n = this.i18n ||
|
|
14
14
|
// @ts-ignore
|
|
@@ -18,10 +18,10 @@ export default class HTML5Video extends BasePlayback {
|
|
|
18
18
|
if (i18n &&
|
|
19
19
|
!errorData.UI &&
|
|
20
20
|
errorData.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
|
|
21
|
-
errorData.UI = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
21
|
+
// errorData.UI = {
|
|
22
|
+
// title: i18n.t('no_broadcast'),
|
|
23
|
+
// message: errorData.message,
|
|
24
|
+
// }
|
|
25
25
|
errorData.code = PlaybackErrorCode.MediaSourceUnavailable;
|
|
26
26
|
}
|
|
27
27
|
return super.createError(errorData, { ...options, useCodePrefix: false });
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export default class HTML5Video extends BasePlayback {
|
|
|
12
12
|
*/
|
|
13
13
|
override createError(errorData: any, options?: ErrorOptions) {
|
|
14
14
|
trace(`${T} createError`, {
|
|
15
|
-
errorData
|
|
15
|
+
errorData: structuredClone(errorData),
|
|
16
16
|
})
|
|
17
17
|
const i18n =
|
|
18
18
|
this.i18n ||
|
|
@@ -26,10 +26,10 @@ export default class HTML5Video extends BasePlayback {
|
|
|
26
26
|
!errorData.UI &&
|
|
27
27
|
errorData.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED
|
|
28
28
|
) {
|
|
29
|
-
errorData.UI = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
// errorData.UI = {
|
|
30
|
+
// title: i18n.t('no_broadcast'),
|
|
31
|
+
// message: errorData.message,
|
|
32
|
+
// }
|
|
33
33
|
errorData.code = PlaybackErrorCode.MediaSourceUnavailable
|
|
34
34
|
}
|
|
35
35
|
return super.createError(errorData, { ...options, useCodePrefix: false })
|