xgplayer 3.0.12-rc.0 → 3.0.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/index.min.js +1 -1
  3. package/dist/index.min.js.map +1 -1
  4. package/es/index.d.ts +2 -1
  5. package/es/index.js +1 -0
  6. package/es/index.umd.d.ts +2 -0
  7. package/es/index.umd.js +2 -0
  8. package/es/instManager.d.ts +58 -0
  9. package/es/instManager.js +151 -0
  10. package/es/lang/br.d.ts +91 -0
  11. package/es/lang/de.d.ts +91 -0
  12. package/es/lang/es.d.ts +91 -0
  13. package/es/lang/fr.d.ts +91 -0
  14. package/es/lang/id.d.ts +91 -0
  15. package/es/lang/it.d.ts +91 -0
  16. package/es/lang/kr.d.ts +91 -0
  17. package/es/lang/ms-my.d.ts +91 -0
  18. package/es/lang/ru.d.ts +91 -0
  19. package/es/lang/th.d.ts +91 -0
  20. package/es/lang/vn.d.ts +91 -0
  21. package/es/mediaProxy.d.ts +5 -0
  22. package/es/player.d.ts +28 -8
  23. package/es/player.js +45 -23
  24. package/es/plugin/basePlugin.d.ts +2 -2
  25. package/es/plugin/plugin.d.ts +6 -7
  26. package/es/plugin/plugin.js +1 -1
  27. package/es/plugin/pluginsManager.d.ts +0 -34
  28. package/es/plugin/pluginsManager.js +1 -49
  29. package/es/plugins/common/optionsIcon.d.ts +0 -1
  30. package/es/plugins/common/optionsIcon.js +1 -1
  31. package/es/plugins/controls/index.d.ts +0 -1
  32. package/es/plugins/controls/index.js +1 -1
  33. package/es/plugins/danmu/index.d.ts +1 -0
  34. package/es/plugins/definition/index.js +1 -1
  35. package/es/plugins/fpsDetect/index.d.ts +4 -1
  36. package/es/plugins/fullscreen/index.d.ts +11 -7
  37. package/es/plugins/fullscreen/index.js +0 -10
  38. package/es/plugins/heatmap/index.d.ts +4 -2
  39. package/es/plugins/heatmap/index.js +81 -28
  40. package/es/plugins/mobile/index.d.ts +6 -5
  41. package/es/plugins/mobile/touch.d.ts +8 -2
  42. package/es/plugins/netAdaption/index.d.ts +4 -1
  43. package/es/plugins/pip/index.d.ts +0 -1
  44. package/es/plugins/pip/index.js +9 -7
  45. package/es/plugins/playbackRate/index.js +1 -1
  46. package/es/plugins/poster/index.d.ts +0 -1
  47. package/es/plugins/poster/index.js +1 -1
  48. package/es/plugins/progress/index.d.ts +6 -7
  49. package/es/plugins/progress/index.js +2 -1
  50. package/es/plugins/progressPreview/index.d.ts +0 -1
  51. package/es/plugins/progressPreview/index.js +1 -1
  52. package/es/plugins/prompt/index.d.ts +5 -2
  53. package/es/plugins/prompt/index.js +3 -3
  54. package/es/plugins/replay/index.d.ts +0 -1
  55. package/es/plugins/replay/index.js +1 -1
  56. package/es/plugins/start/index.d.ts +0 -1
  57. package/es/plugins/start/index.js +1 -1
  58. package/es/plugins/testspeed/index.d.ts +4 -1
  59. package/es/plugins/time/index.d.ts +1 -2
  60. package/es/plugins/time/index.js +1 -1
  61. package/es/plugins/time/timesegments.d.ts +1 -1
  62. package/es/plugins/track/index.js +1 -1
  63. package/es/plugins/waitingTimeoutJump/index.d.ts +4 -1
  64. package/es/presets/default-en.d.ts +1 -2
  65. package/es/presets/default.d.ts +1 -2
  66. package/es/presets/mobile.d.ts +1 -2
  67. package/es/style/common/animation.scss +0 -0
  68. package/es/style/common/svg-url.scss +0 -0
  69. package/es/style/index.scss +0 -0
  70. package/es/style/variable.scss +0 -0
  71. package/es/utils/util.d.ts +3 -3
  72. package/es/version.js +1 -1
  73. package/package.json +3 -3
package/es/index.d.ts CHANGED
@@ -22,5 +22,6 @@ import Util from "./utils/util";
22
22
  import STATE_CLASS from "./stateClassMap";
23
23
  import I18N from "./lang/i18n";
24
24
  import { STATES } from "./state";
25
- export { PresetPlayer as default, Player as SimplePlayer, BasePlugin, Plugin, Events, Errors, Sniffer, Util, STATE_CLASS, I18N, STATES };
25
+ import { InstManager } from "./instManager";
26
+ export { PresetPlayer as default, Player as SimplePlayer, BasePlugin, Plugin, Events, Errors, Sniffer, Util, STATE_CLASS, I18N, STATES, InstManager };
26
27
  export { default as Danmu, DanmuIcon, DanmuPanel } from "./plugins/danmu";
package/es/index.js CHANGED
@@ -8,6 +8,7 @@ export { default as I18N } from "./lang/i18n.js";
8
8
  export { default as Errors } from "./error.js";
9
9
  export { default as Sniffer } from "./utils/sniffer.js";
10
10
  export { default as Util } from "./utils/util.js";
11
+ export { InstManager } from "./instManager.js";
11
12
  export { default } from "./index.umd.js";
12
13
  export { STATES } from "./state.js";
13
14
  export { default as DefaultPresetEn } from "./presets/default-en.js";
package/es/index.umd.d.ts CHANGED
@@ -50,6 +50,7 @@ declare class PresetPlayer extends Player {
50
50
  MOBILE: string;
51
51
  MINI: string;
52
52
  };
53
+ static InstManager: typeof InstManager;
53
54
  }
54
55
  import Player from "./player";
55
56
  import defaultPreset from "./presets/default";
@@ -58,3 +59,4 @@ import Errors from "./error";
58
59
  import * as Events from "./events";
59
60
  import Plugin from "./plugin/plugin";
60
61
  import BasePlugin from "./plugin/basePlugin";
62
+ import { InstManager } from "./instManager";
package/es/index.umd.js CHANGED
@@ -8,6 +8,7 @@ import I18N from "./lang/i18n.js";
8
8
  import Errors from "./error.js";
9
9
  import sniffer from "./utils/sniffer.js";
10
10
  import util from "./utils/util.js";
11
+ import { InstManager } from "./instManager.js";
11
12
  import DefaultPreset from "./presets/default.js";
12
13
  var PresetPlayer = /* @__PURE__ */ function(_Player) {
13
14
  _inherits(PresetPlayer2, _Player);
@@ -27,4 +28,5 @@ _defineProperty(PresetPlayer, "Plugin", Plugin);
27
28
  _defineProperty(PresetPlayer, "BasePlugin", BasePlugin);
28
29
  _defineProperty(PresetPlayer, "I18N", I18N);
29
30
  _defineProperty(PresetPlayer, "STATE_CLASS", STATE_CLASS);
31
+ _defineProperty(PresetPlayer, "InstManager", InstManager);
30
32
  export { PresetPlayer as default };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Check whether there is a player instance in the current dom
3
+ * @param {Element} root
4
+ */
5
+ export function checkPlayerRoot(root: Element): any;
6
+ declare const InstManager_base: import("eventemitter3").EventEmitterStatic;
7
+ /**
8
+ * Design as a class so that can be inherited to enhance functionality
9
+ */
10
+ export class InstManager extends InstManager_base {
11
+ static getInstance(): any;
12
+ constructor();
13
+ add(player: any): void;
14
+ remove(player: any): void;
15
+ /**
16
+ * @private
17
+ * @param {IterateFunction} fn
18
+ * @param {?boolean} endEarly
19
+ */
20
+ private _iterate;
21
+ /**
22
+ * @param {IterateFunction} fn
23
+ */
24
+ forEach(fn: IterateFunction): void;
25
+ /**
26
+ * Iterates over items of store, returning the first one
27
+ * @param {IterateFunction} fn
28
+ * @returns {Player}
29
+ */
30
+ find(fn: IterateFunction): Player;
31
+ /**
32
+ * @param {IterateFunction} fn
33
+ * @returns {Player[]}
34
+ */
35
+ findAll(fn: IterateFunction): Player[];
36
+ /**
37
+ * 设置实例的用户行为激活状态
38
+ * @param { number | string } playerId
39
+ * @param { boolean } isActive
40
+ * @returns { number | null }
41
+ */
42
+ setActive(playerId: number | string, isActive?: boolean): number | null;
43
+ /**
44
+ * 获取当前处理激活态的实例id
45
+ * @returns { number | null }
46
+ */
47
+ getActiveId(): number | null;
48
+ /**
49
+ * 标记下一个实例
50
+ * @param { number | string } playerId
51
+ * @param { boolean } isNext
52
+ * @returns { number | null }
53
+ */
54
+ setNext(playerId: number | string, isNext?: boolean): number | null;
55
+ }
56
+ export type IterateFunction = (Player: any) => boolean | null;
57
+ export type Player = import('./player').default;
58
+ export {};
@@ -0,0 +1,151 @@
1
+ import { inherits as _inherits, createSuper as _createSuper, createClass as _createClass, classCallCheck as _classCallCheck } from "./_virtual/_rollupPluginBabelHelpers.js";
2
+ import { EventEmitter } from "eventemitter3";
3
+ var store = {};
4
+ var instance = null;
5
+ var InstManager = /* @__PURE__ */ function(_EventEmitter) {
6
+ _inherits(InstManager2, _EventEmitter);
7
+ var _super = _createSuper(InstManager2);
8
+ function InstManager2() {
9
+ _classCallCheck(this, InstManager2);
10
+ return _super.apply(this, arguments);
11
+ }
12
+ _createClass(InstManager2, [{
13
+ key: "add",
14
+ value: function add(player) {
15
+ if (!player) {
16
+ return;
17
+ }
18
+ store[player.playerId] = player;
19
+ if (Object.keys(store).length === 1) {
20
+ this.setActive(player.playerId, true);
21
+ }
22
+ }
23
+ }, {
24
+ key: "remove",
25
+ value: function remove(player) {
26
+ if (!player) {
27
+ return;
28
+ }
29
+ player.isUserActive;
30
+ delete store[player.playerId];
31
+ }
32
+ }, {
33
+ key: "_iterate",
34
+ value: function _iterate(fn) {
35
+ var endEarly = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
36
+ for (var key in store) {
37
+ if (Object.prototype.hasOwnProperty.call(store, key)) {
38
+ var player = store[key];
39
+ if (endEarly) {
40
+ if (fn(player)) {
41
+ break;
42
+ }
43
+ } else {
44
+ fn(player);
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }, {
50
+ key: "forEach",
51
+ value: function forEach(fn) {
52
+ this._iterate(fn);
53
+ }
54
+ }, {
55
+ key: "find",
56
+ value: function find(fn) {
57
+ var result = null;
58
+ this._iterate(function(player) {
59
+ var flag = fn(player);
60
+ if (flag) {
61
+ result = player;
62
+ }
63
+ return flag;
64
+ }, true);
65
+ return result;
66
+ }
67
+ }, {
68
+ key: "findAll",
69
+ value: function findAll(fn) {
70
+ var results = [];
71
+ this._iterate(function(player) {
72
+ if (fn(player)) {
73
+ results.push(player);
74
+ }
75
+ });
76
+ return results;
77
+ }
78
+ }, {
79
+ key: "setActive",
80
+ value: function setActive(playerId) {
81
+ var isActive = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
82
+ if (!store[playerId]) {
83
+ return;
84
+ }
85
+ if (isActive) {
86
+ this.forEach(function(inst) {
87
+ if (playerId === inst.playerId) {
88
+ inst.isUserActive = true;
89
+ inst.isInstNext = false;
90
+ } else {
91
+ inst.isUserActive = false;
92
+ }
93
+ });
94
+ } else {
95
+ store[playerId].isUserActive = isActive;
96
+ }
97
+ return playerId;
98
+ }
99
+ }, {
100
+ key: "getActiveId",
101
+ value: function getActiveId() {
102
+ var keys = Object.keys(store);
103
+ for (var i = 0; i < keys.length; i++) {
104
+ var c = store[keys[i]];
105
+ if (c && c.isUserActive) {
106
+ return keys[i];
107
+ }
108
+ }
109
+ return null;
110
+ }
111
+ }, {
112
+ key: "setNext",
113
+ value: function setNext(playerId) {
114
+ var isNext = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
115
+ if (!store[playerId]) {
116
+ return;
117
+ }
118
+ if (isNext) {
119
+ this.forEach(function(inst) {
120
+ if (playerId === inst.playerId) {
121
+ inst.isUserActive = false;
122
+ inst.isInstNext = true;
123
+ } else {
124
+ inst.isInstNext = false;
125
+ }
126
+ });
127
+ } else {
128
+ store[playerId].isInstNext = isNext;
129
+ }
130
+ return playerId;
131
+ }
132
+ }], [{
133
+ key: "getInstance",
134
+ value: function getInstance() {
135
+ instance || (instance = new InstManager2());
136
+ return instance;
137
+ }
138
+ }]);
139
+ return InstManager2;
140
+ }(EventEmitter);
141
+ function checkPlayerRoot(root) {
142
+ var keys = Object.keys(store);
143
+ for (var i = 0; i < keys.length; i++) {
144
+ var p = store[keys[i]];
145
+ if (p.root === root) {
146
+ return p;
147
+ }
148
+ }
149
+ return null;
150
+ }
151
+ export { InstManager, checkPlayerRoot };
@@ -0,0 +1,91 @@
1
+ declare namespace _default {
2
+ const LANG: string;
3
+ namespace TEXT {
4
+ namespace ERROR_TYPES {
5
+ namespace network {
6
+ const code: number;
7
+ const msg: string;
8
+ }
9
+ namespace mse {
10
+ const code_1: number;
11
+ export { code_1 as code };
12
+ const msg_1: string;
13
+ export { msg_1 as msg };
14
+ }
15
+ namespace parse {
16
+ const code_2: number;
17
+ export { code_2 as code };
18
+ const msg_2: string;
19
+ export { msg_2 as msg };
20
+ }
21
+ namespace format {
22
+ const code_3: number;
23
+ export { code_3 as code };
24
+ const msg_3: string;
25
+ export { msg_3 as msg };
26
+ }
27
+ namespace decoder {
28
+ const code_4: number;
29
+ export { code_4 as code };
30
+ const msg_4: string;
31
+ export { msg_4 as msg };
32
+ }
33
+ namespace runtime {
34
+ const code_5: number;
35
+ export { code_5 as code };
36
+ const msg_5: string;
37
+ export { msg_5 as msg };
38
+ }
39
+ namespace timeout {
40
+ const code_6: number;
41
+ export { code_6 as code };
42
+ const msg_6: string;
43
+ export { msg_6 as msg };
44
+ }
45
+ namespace other {
46
+ const code_7: number;
47
+ export { code_7 as code };
48
+ const msg_7: string;
49
+ export { msg_7 as msg };
50
+ }
51
+ }
52
+ const HAVE_NOTHING: string;
53
+ const HAVE_METADATA: string;
54
+ const HAVE_CURRENT_DATA: string;
55
+ const HAVE_FUTURE_DATA: string;
56
+ const HAVE_ENOUGH_DATA: string;
57
+ const NETWORK_EMPTY: string;
58
+ const NETWORK_IDLE: string;
59
+ const NETWORK_LOADING: string;
60
+ const NETWORK_NO_SOURCE: string;
61
+ const MEDIA_ERR_ABORTED: string;
62
+ const MEDIA_ERR_NETWORK: string;
63
+ const MEDIA_ERR_DECODE: string;
64
+ const MEDIA_ERR_SRC_NOT_SUPPORTED: string;
65
+ const REPLAY: string;
66
+ const ERROR: string;
67
+ const PLAY_TIPS: string;
68
+ const PAUSE_TIPS: string;
69
+ const PLAYNEXT_TIPS: string;
70
+ const DOWNLOAD_TIPS: string;
71
+ const ROTATE_TIPS: string;
72
+ const RELOAD_TIPS: string;
73
+ const FULLSCREEN_TIPS: string;
74
+ const EXITFULLSCREEN_TIPS: string;
75
+ const CSSFULLSCREEN_TIPS: string;
76
+ const EXITCSSFULLSCREEN_TIPS: string;
77
+ const TEXTTRACK: string;
78
+ const PIP: string;
79
+ const SCREENSHOT: string;
80
+ const LIVE: string;
81
+ const OFF: string;
82
+ const OPEN: string;
83
+ const MINI_DRAG: string;
84
+ const MINISCREEN: string;
85
+ const REFRESH_TIPS: string;
86
+ const REFRESH: string;
87
+ const FORWARD: string;
88
+ const LIVE_TIP: string;
89
+ }
90
+ }
91
+ export default _default;
@@ -0,0 +1,91 @@
1
+ declare namespace _default {
2
+ const LANG: string;
3
+ namespace TEXT {
4
+ namespace ERROR_TYPES {
5
+ namespace network {
6
+ const code: number;
7
+ const msg: string;
8
+ }
9
+ namespace mse {
10
+ const code_1: number;
11
+ export { code_1 as code };
12
+ const msg_1: string;
13
+ export { msg_1 as msg };
14
+ }
15
+ namespace parse {
16
+ const code_2: number;
17
+ export { code_2 as code };
18
+ const msg_2: string;
19
+ export { msg_2 as msg };
20
+ }
21
+ namespace format {
22
+ const code_3: number;
23
+ export { code_3 as code };
24
+ const msg_3: string;
25
+ export { msg_3 as msg };
26
+ }
27
+ namespace decoder {
28
+ const code_4: number;
29
+ export { code_4 as code };
30
+ const msg_4: string;
31
+ export { msg_4 as msg };
32
+ }
33
+ namespace runtime {
34
+ const code_5: number;
35
+ export { code_5 as code };
36
+ const msg_5: string;
37
+ export { msg_5 as msg };
38
+ }
39
+ namespace timeout {
40
+ const code_6: number;
41
+ export { code_6 as code };
42
+ const msg_6: string;
43
+ export { msg_6 as msg };
44
+ }
45
+ namespace other {
46
+ const code_7: number;
47
+ export { code_7 as code };
48
+ const msg_7: string;
49
+ export { msg_7 as msg };
50
+ }
51
+ }
52
+ const HAVE_NOTHING: string;
53
+ const HAVE_METADATA: string;
54
+ const HAVE_CURRENT_DATA: string;
55
+ const HAVE_FUTURE_DATA: string;
56
+ const HAVE_ENOUGH_DATA: string;
57
+ const NETWORK_EMPTY: string;
58
+ const NETWORK_IDLE: string;
59
+ const NETWORK_LOADING: string;
60
+ const NETWORK_NO_SOURCE: string;
61
+ const MEDIA_ERR_ABORTED: string;
62
+ const MEDIA_ERR_NETWORK: string;
63
+ const MEDIA_ERR_DECODE: string;
64
+ const MEDIA_ERR_SRC_NOT_SUPPORTED: string;
65
+ const REPLAY: string;
66
+ const ERROR: string;
67
+ const PLAY_TIPS: string;
68
+ const PAUSE_TIPS: string;
69
+ const PLAYNEXT_TIPS: string;
70
+ const DOWNLOAD_TIPS: string;
71
+ const ROTATE_TIPS: string;
72
+ const RELOAD_TIPS: string;
73
+ const FULLSCREEN_TIPS: string;
74
+ const EXITFULLSCREEN_TIPS: string;
75
+ const CSSFULLSCREEN_TIPS: string;
76
+ const EXITCSSFULLSCREEN_TIPS: string;
77
+ const TEXTTRACK: string;
78
+ const PIP: string;
79
+ const SCREENSHOT: string;
80
+ const LIVE: string;
81
+ const OFF: string;
82
+ const OPEN: string;
83
+ const MINI_DRAG: string;
84
+ const MINISCREEN: string;
85
+ const REFRESH_TIPS: string;
86
+ const REFRESH: string;
87
+ const FORWARD: string;
88
+ const LIVE_TIP: string;
89
+ }
90
+ }
91
+ export default _default;
@@ -0,0 +1,91 @@
1
+ declare namespace _default {
2
+ const LANG: string;
3
+ namespace TEXT {
4
+ namespace ERROR_TYPES {
5
+ namespace network {
6
+ const code: number;
7
+ const msg: string;
8
+ }
9
+ namespace mse {
10
+ const code_1: number;
11
+ export { code_1 as code };
12
+ const msg_1: string;
13
+ export { msg_1 as msg };
14
+ }
15
+ namespace parse {
16
+ const code_2: number;
17
+ export { code_2 as code };
18
+ const msg_2: string;
19
+ export { msg_2 as msg };
20
+ }
21
+ namespace format {
22
+ const code_3: number;
23
+ export { code_3 as code };
24
+ const msg_3: string;
25
+ export { msg_3 as msg };
26
+ }
27
+ namespace decoder {
28
+ const code_4: number;
29
+ export { code_4 as code };
30
+ const msg_4: string;
31
+ export { msg_4 as msg };
32
+ }
33
+ namespace runtime {
34
+ const code_5: number;
35
+ export { code_5 as code };
36
+ const msg_5: string;
37
+ export { msg_5 as msg };
38
+ }
39
+ namespace timeout {
40
+ const code_6: number;
41
+ export { code_6 as code };
42
+ const msg_6: string;
43
+ export { msg_6 as msg };
44
+ }
45
+ namespace other {
46
+ const code_7: number;
47
+ export { code_7 as code };
48
+ const msg_7: string;
49
+ export { msg_7 as msg };
50
+ }
51
+ }
52
+ const HAVE_NOTHING: string;
53
+ const HAVE_METADATA: string;
54
+ const HAVE_CURRENT_DATA: string;
55
+ const HAVE_FUTURE_DATA: string;
56
+ const HAVE_ENOUGH_DATA: string;
57
+ const NETWORK_EMPTY: string;
58
+ const NETWORK_IDLE: string;
59
+ const NETWORK_LOADING: string;
60
+ const NETWORK_NO_SOURCE: string;
61
+ const MEDIA_ERR_ABORTED: string;
62
+ const MEDIA_ERR_NETWORK: string;
63
+ const MEDIA_ERR_DECODE: string;
64
+ const MEDIA_ERR_SRC_NOT_SUPPORTED: string;
65
+ const REPLAY: string;
66
+ const ERROR: string;
67
+ const PLAY_TIPS: string;
68
+ const PAUSE_TIPS: string;
69
+ const PLAYNEXT_TIPS: string;
70
+ const DOWNLOAD_TIPS: string;
71
+ const ROTATE_TIPS: string;
72
+ const RELOAD_TIPS: string;
73
+ const FULLSCREEN_TIPS: string;
74
+ const EXITFULLSCREEN_TIPS: string;
75
+ const CSSFULLSCREEN_TIPS: string;
76
+ const EXITCSSFULLSCREEN_TIPS: string;
77
+ const TEXTTRACK: string;
78
+ const PIP: string;
79
+ const SCREENSHOT: string;
80
+ const LIVE: string;
81
+ const OFF: string;
82
+ const OPEN: string;
83
+ const MINI_DRAG: string;
84
+ const MINISCREEN: string;
85
+ const REFRESH_TIPS: string;
86
+ const REFRESH: string;
87
+ const FORWARD: string;
88
+ const LIVE_TIP: string;
89
+ }
90
+ }
91
+ export default _default;
@@ -0,0 +1,91 @@
1
+ declare namespace _default {
2
+ const LANG: string;
3
+ namespace TEXT {
4
+ namespace ERROR_TYPES {
5
+ namespace network {
6
+ const code: number;
7
+ const msg: string;
8
+ }
9
+ namespace mse {
10
+ const code_1: number;
11
+ export { code_1 as code };
12
+ const msg_1: string;
13
+ export { msg_1 as msg };
14
+ }
15
+ namespace parse {
16
+ const code_2: number;
17
+ export { code_2 as code };
18
+ const msg_2: string;
19
+ export { msg_2 as msg };
20
+ }
21
+ namespace format {
22
+ const code_3: number;
23
+ export { code_3 as code };
24
+ const msg_3: string;
25
+ export { msg_3 as msg };
26
+ }
27
+ namespace decoder {
28
+ const code_4: number;
29
+ export { code_4 as code };
30
+ const msg_4: string;
31
+ export { msg_4 as msg };
32
+ }
33
+ namespace runtime {
34
+ const code_5: number;
35
+ export { code_5 as code };
36
+ const msg_5: string;
37
+ export { msg_5 as msg };
38
+ }
39
+ namespace timeout {
40
+ const code_6: number;
41
+ export { code_6 as code };
42
+ const msg_6: string;
43
+ export { msg_6 as msg };
44
+ }
45
+ namespace other {
46
+ const code_7: number;
47
+ export { code_7 as code };
48
+ const msg_7: string;
49
+ export { msg_7 as msg };
50
+ }
51
+ }
52
+ const HAVE_NOTHING: string;
53
+ const HAVE_METADATA: string;
54
+ const HAVE_CURRENT_DATA: string;
55
+ const HAVE_FUTURE_DATA: string;
56
+ const HAVE_ENOUGH_DATA: string;
57
+ const NETWORK_EMPTY: string;
58
+ const NETWORK_IDLE: string;
59
+ const NETWORK_LOADING: string;
60
+ const NETWORK_NO_SOURCE: string;
61
+ const MEDIA_ERR_ABORTED: string;
62
+ const MEDIA_ERR_NETWORK: string;
63
+ const MEDIA_ERR_DECODE: string;
64
+ const MEDIA_ERR_SRC_NOT_SUPPORTED: string;
65
+ const REPLAY: string;
66
+ const ERROR: string;
67
+ const PLAY_TIPS: string;
68
+ const PAUSE_TIPS: string;
69
+ const PLAYNEXT_TIPS: string;
70
+ const DOWNLOAD_TIPS: string;
71
+ const ROTATE_TIPS: string;
72
+ const RELOAD_TIPS: string;
73
+ const FULLSCREEN_TIPS: string;
74
+ const EXITFULLSCREEN_TIPS: string;
75
+ const CSSFULLSCREEN_TIPS: string;
76
+ const EXITCSSFULLSCREEN_TIPS: string;
77
+ const TEXTTRACK: string;
78
+ const PIP: string;
79
+ const SCREENSHOT: string;
80
+ const LIVE: string;
81
+ const OFF: string;
82
+ const OPEN: string;
83
+ const MINI_DRAG: string;
84
+ const MINISCREEN: string;
85
+ const REFRESH_TIPS: string;
86
+ const REFRESH: string;
87
+ const FORWARD: string;
88
+ const LIVE_TIP: string;
89
+ }
90
+ }
91
+ export default _default;