xgplayer 2.32.5 → 2.32.6
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/browser/controls/airplay.js +1 -1
- package/browser/controls/cssFullscreen.js +1 -1
- package/browser/controls/danmu.js +3 -1
- package/browser/controls/definition.js +1 -1
- package/browser/controls/download.js +1 -1
- package/browser/controls/enter.js +1 -1
- package/browser/controls/error.js +1 -1
- package/browser/controls/errorRetry.js +1 -1
- package/browser/controls/flex.js +1 -1
- package/browser/controls/fullscreen.js +1 -1
- package/browser/controls/loading.js +1 -1
- package/browser/controls/memoryPlay.js +1 -1
- package/browser/controls/miniplayer.js +9 -7
- package/browser/controls/mobile.js +1 -1
- package/browser/controls/nativeTextTrack.js +1 -1
- package/browser/controls/pc.js +1 -1
- package/browser/controls/pip.js +1 -1
- package/browser/controls/play.js +1 -1
- package/browser/controls/playNext.js +1 -1
- package/browser/controls/playbackRate.js +1 -1
- package/browser/controls/poster.js +1 -1
- package/browser/controls/progress.js +1 -1
- package/browser/controls/reload.js +1 -1
- package/browser/controls/replay.js +1 -1
- package/browser/controls/rotate.js +1 -1
- package/browser/controls/screenShot.js +1 -1
- package/browser/controls/start.js +1 -1
- package/browser/controls/textTrack.js +1 -1
- package/browser/controls/time.js +1 -1
- package/browser/controls/volume.js +1 -1
- package/browser/core_player.js +1 -1
- package/browser/core_player.js.map +1 -1
- package/browser/index.js +11 -7
- package/browser/index.js.map +1 -1
- package/browser/simple_player.js +1 -1
- package/browser/simple_player.js.map +1 -1
- package/dist/controls/airplay.js +1 -1
- package/dist/controls/cssFullscreen.js +1 -1
- package/dist/controls/danmu.js +3 -1
- package/dist/controls/definition.js +1 -1
- package/dist/controls/download.js +1 -1
- package/dist/controls/enter.js +1 -1
- package/dist/controls/error.js +1 -1
- package/dist/controls/errorRetry.js +1 -1
- package/dist/controls/flex.js +1 -1
- package/dist/controls/fullscreen.js +1 -1
- package/dist/controls/loading.js +1 -1
- package/dist/controls/memoryPlay.js +1 -1
- package/dist/controls/miniplayer.js +9 -7
- package/dist/controls/mobile.js +1 -1
- package/dist/controls/nativeTextTrack.js +1 -1
- package/dist/controls/pc.js +1 -1
- package/dist/controls/pip.js +1 -1
- package/dist/controls/play.js +1 -1
- package/dist/controls/playNext.js +1 -1
- package/dist/controls/playbackRate.js +1 -1
- package/dist/controls/poster.js +1 -1
- package/dist/controls/progress.js +1 -1
- package/dist/controls/reload.js +1 -1
- package/dist/controls/replay.js +1 -1
- package/dist/controls/rotate.js +1 -1
- package/dist/controls/screenShot.js +1 -1
- package/dist/controls/start.js +1 -1
- package/dist/controls/textTrack.js +1 -1
- package/dist/controls/time.js +1 -1
- package/dist/controls/volume.js +1 -1
- package/dist/core_player.js +2960 -2889
- package/dist/core_player.js.map +1 -1
- package/dist/index.js +1938 -3321
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/simple_player.js +274 -281
- package/dist/simple_player.js.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +216 -0
- package/es/constant.d.ts +4 -0
- package/es/constant.js +5 -0
- package/es/controls/airplay.js +1 -1
- package/es/controls/cssFullscreen.js +1 -1
- package/es/controls/danmu.js +3 -1
- package/es/controls/definition.js +1 -1
- package/es/controls/download.js +1 -1
- package/es/controls/enter.js +1 -1
- package/es/controls/error.js +1 -1
- package/es/controls/errorRetry.js +1 -1
- package/es/controls/flex.js +1 -1
- package/es/controls/fullscreen.js +1 -1
- package/es/controls/i18n.js +1 -1
- package/es/controls/keyboard.js +1 -1
- package/es/controls/loading.js +1 -1
- package/es/controls/localPreview.js +1 -1
- package/es/controls/memoryPlay.js +1 -1
- package/es/controls/miniplayer.js +9 -7
- package/es/controls/mobile.js +1 -1
- package/es/controls/nativeTextTrack.js +1 -1
- package/es/controls/pc.js +1 -1
- package/es/controls/pip.js +1 -1
- package/es/controls/play.js +1 -1
- package/es/controls/playNext.js +1 -1
- package/es/controls/playbackRate.js +1 -1
- package/es/controls/poster.js +1 -1
- package/es/controls/progress.js +1 -1
- package/es/controls/reload.js +1 -1
- package/es/controls/replay.js +1 -1
- package/es/controls/rotate.js +1 -1
- package/es/controls/screenShot.js +1 -1
- package/es/controls/start.js +1 -1
- package/es/controls/textTrack.js +1 -1
- package/es/controls/time.js +1 -1
- package/es/controls/volume.js +1 -1
- package/es/core_player.js +1 -1
- package/es/core_player.js.map +1 -1
- package/es/defaultConfig.d.ts +243 -0
- package/es/defaultConfig.js +85 -0
- package/es/error.d.ts +114 -0
- package/es/error.js +75 -0
- package/es/events.d.ts +61 -0
- package/es/events.js +62 -0
- package/es/icons.d.ts +2 -0
- package/es/index.css +499 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +11 -7
- package/es/index.js.map +1 -1
- package/es/index.scss +29 -0
- package/es/index.umd.d.ts +60 -0
- package/es/index.umd.js +30 -0
- package/es/lang/en.d.ts +91 -0
- package/es/lang/en.js +77 -0
- package/es/lang/i18n.d.ts +36 -0
- package/es/lang/i18n.js +122 -0
- package/es/lang/index.d.ts +2 -0
- package/es/lang/jp.d.ts +91 -0
- package/es/lang/jp.js +77 -0
- package/es/lang/zh-cn.d.ts +91 -0
- package/es/lang/zh-cn.js +77 -0
- package/es/lang/zh-hk.d.ts +91 -0
- package/es/lang/zh-hk.js +77 -0
- package/es/mediaProxy.d.ts +334 -0
- package/es/mediaProxy.js +623 -0
- package/es/player.d.ts +825 -0
- package/es/player.js +1945 -0
- package/es/plugin/basePlugin.d.ts +180 -0
- package/es/plugin/basePlugin.js +259 -0
- package/es/plugin/hooksDescriptor.d.ts +60 -0
- package/es/plugin/hooksDescriptor.js +149 -0
- package/es/plugin/index.d.ts +13 -0
- package/es/plugin/plugin.d.ts +207 -0
- package/es/plugin/plugin.js +542 -0
- package/es/plugin/pluginsManager.d.ts +162 -0
- package/es/plugin/pluginsManager.js +362 -0
- package/es/plugin/preset.d.ts +1 -0
- package/es/plugin/preset.js +28 -0
- package/es/plugin/resizeObserver.d.ts +3 -0
- package/es/plugin/resizeObserver.js +108 -0
- package/es/plugins/assets/back.js +4 -0
- package/es/plugins/assets/download.js +4 -0
- package/es/plugins/assets/exitCssFull.js +4 -0
- package/es/plugins/assets/exitFull.js +4 -0
- package/es/plugins/assets/loading.js +4 -0
- package/es/plugins/assets/panel.js +4 -0
- package/es/plugins/assets/pause.js +4 -0
- package/es/plugins/assets/pipIcon.js +4 -0
- package/es/plugins/assets/pipIconExit.js +4 -0
- package/es/plugins/assets/play.js +4 -0
- package/es/plugins/assets/playNext.js +4 -0
- package/es/plugins/assets/replay.js +4 -0
- package/es/plugins/assets/requestCssFull.js +7 -0
- package/es/plugins/assets/requestFull.js +4 -0
- package/es/plugins/assets/rotate.js +4 -0
- package/es/plugins/assets/seekicon.js +4 -0
- package/es/plugins/assets/volumeLarge.js +4 -0
- package/es/plugins/assets/volumeMuted.js +4 -0
- package/es/plugins/assets/volumeSmall.js +4 -0
- package/es/plugins/common/iconPlugin.d.ts +5 -0
- package/es/plugins/common/iconPlugin.js +42 -0
- package/es/plugins/common/iconTools.d.ts +1 -0
- package/es/plugins/common/iconTools.js +8 -0
- package/es/plugins/common/index.scss +2 -0
- package/es/plugins/common/optionList.d.ts +15 -0
- package/es/plugins/common/optionList.js +120 -0
- package/es/plugins/common/optionsIcon.d.ts +40 -0
- package/es/plugins/common/optionsIcon.js +304 -0
- package/es/plugins/common/optionsIcon.scss +154 -0
- package/es/plugins/common/thumbnail.d.ts +62 -0
- package/es/plugins/common/thumbnail.js +191 -0
- package/es/plugins/common/thumbnail.scss +27 -0
- package/es/plugins/controls/index.css +132 -0
- package/es/plugins/controls/index.d.ts +73 -0
- package/es/plugins/controls/index.js +189 -0
- package/es/plugins/controls/index.scss +204 -0
- package/es/plugins/cssFullScreen/index.css +12 -0
- package/es/plugins/cssFullScreen/index.d.ts +40 -0
- package/es/plugins/cssFullScreen/index.js +136 -0
- package/es/plugins/cssFullScreen/index.scss +19 -0
- package/es/plugins/danmu/danmuIcon.d.ts +24 -0
- package/es/plugins/danmu/danmuIcon.js +98 -0
- package/es/plugins/danmu/danmuPanel.d.ts +39 -0
- package/es/plugins/danmu/danmuPanel.js +81 -0
- package/es/plugins/danmu/index.css +603 -0
- package/es/plugins/danmu/index.d.ts +96 -0
- package/es/plugins/danmu/index.js +313 -0
- package/es/plugins/danmu/index.scss +356 -0
- package/es/plugins/definition/index.css +4 -0
- package/es/plugins/definition/index.d.ts +38 -0
- package/es/plugins/definition/index.js +164 -0
- package/es/plugins/definition/index.scss +4 -0
- package/es/plugins/download/index.css +13 -0
- package/es/plugins/download/index.d.ts +31 -0
- package/es/plugins/download/index.js +107 -0
- package/es/plugins/download/index.scss +22 -0
- package/es/plugins/dynamicBg/index.css +16 -0
- package/es/plugins/dynamicBg/index.d.ts +83 -0
- package/es/plugins/dynamicBg/index.js +316 -0
- package/es/plugins/dynamicBg/index.scss +19 -0
- package/es/plugins/enter/index.css +104 -0
- package/es/plugins/enter/index.d.ts +19 -0
- package/es/plugins/enter/index.js +46 -0
- package/es/plugins/enter/index.scss +78 -0
- package/es/plugins/error/index.css +29 -0
- package/es/plugins/error/index.d.ts +8 -0
- package/es/plugins/error/index.js +75 -0
- package/es/plugins/error/index.scss +34 -0
- package/es/plugins/fpsDetect/index.d.ts +34 -0
- package/es/plugins/fpsDetect/index.js +149 -0
- package/es/plugins/fullscreen/backicon.d.ts +17 -0
- package/es/plugins/fullscreen/backicon.js +72 -0
- package/es/plugins/fullscreen/index.css +23 -0
- package/es/plugins/fullscreen/index.d.ts +58 -0
- package/es/plugins/fullscreen/index.js +202 -0
- package/es/plugins/fullscreen/index.scss +35 -0
- package/es/plugins/gapJump/index.d.ts +21 -0
- package/es/plugins/gapJump/index.js +142 -0
- package/es/plugins/keyboard/index.d.ts +89 -0
- package/es/plugins/keyboard/index.js +421 -0
- package/es/plugins/loading/index.css +58 -0
- package/es/plugins/loading/index.d.ts +11 -0
- package/es/plugins/loading/index.js +43 -0
- package/es/plugins/loading/index.scss +70 -0
- package/es/plugins/logger/index.d.ts +54 -0
- package/es/plugins/logger/index.js +311 -0
- package/es/plugins/miniScreen/index.css +179 -0
- package/es/plugins/miniScreen/index.d.ts +68 -0
- package/es/plugins/miniScreen/index.js +212 -0
- package/es/plugins/miniScreen/index.scss +198 -0
- package/es/plugins/miniScreen/miniScreenIcon.d.ts +11 -0
- package/es/plugins/miniScreen/miniScreenIcon.js +56 -0
- package/es/plugins/mobile/index.css +181 -0
- package/es/plugins/mobile/index.d.ts +125 -0
- package/es/plugins/mobile/index.js +631 -0
- package/es/plugins/mobile/index.scss +180 -0
- package/es/plugins/mobile/touch.d.ts +43 -0
- package/es/plugins/mobile/touch.js +214 -0
- package/es/plugins/netAdaption/index.d.ts +5 -0
- package/es/plugins/pc/index.css +3 -0
- package/es/plugins/pc/index.d.ts +14 -0
- package/es/plugins/pc/index.js +199 -0
- package/es/plugins/pc/index.scss +5 -0
- package/es/plugins/pip/index.css +12 -0
- package/es/plugins/pip/index.d.ts +37 -0
- package/es/plugins/pip/index.js +222 -0
- package/es/plugins/pip/index.scss +21 -0
- package/es/plugins/play/index.css +12 -0
- package/es/plugins/play/index.d.ts +23 -0
- package/es/plugins/play/index.js +127 -0
- package/es/plugins/play/index.scss +18 -0
- package/es/plugins/playNext/index.css +22 -0
- package/es/plugins/playNext/index.d.ts +19 -0
- package/es/plugins/playNext/index.js +104 -0
- package/es/plugins/playNext/index.scss +35 -0
- package/es/plugins/playbackRate/index.css +4 -0
- package/es/plugins/playbackRate/index.d.ts +31 -0
- package/es/plugins/playbackRate/index.js +140 -0
- package/es/plugins/playbackRate/index.scss +6 -0
- package/es/plugins/poster/index.css +39 -0
- package/es/plugins/poster/index.d.ts +27 -0
- package/es/plugins/poster/index.js +109 -0
- package/es/plugins/poster/index.scss +56 -0
- package/es/plugins/progress/index.css +234 -0
- package/es/plugins/progress/index.d.ts +178 -0
- package/es/plugins/progress/index.js +687 -0
- package/es/plugins/progress/index.scss +288 -0
- package/es/plugins/progress/innerList.d.ts +49 -0
- package/es/plugins/progress/innerList.js +285 -0
- package/es/plugins/progress/miniProgress.d.ts +9 -0
- package/es/plugins/progress/miniProgress.js +55 -0
- package/es/plugins/progressPreview/dotsApi.d.ts +1 -0
- package/es/plugins/progressPreview/dotsApi.js +269 -0
- package/es/plugins/progressPreview/index.css +190 -0
- package/es/plugins/progressPreview/index.d.ts +87 -0
- package/es/plugins/progressPreview/index.js +475 -0
- package/es/plugins/progressPreview/index.scss +235 -0
- package/es/plugins/prompt/index.css +47 -0
- package/es/plugins/prompt/index.d.ts +24 -0
- package/es/plugins/prompt/index.js +110 -0
- package/es/plugins/prompt/index.scss +53 -0
- package/es/plugins/replay/index.css +33 -0
- package/es/plugins/replay/index.d.ts +16 -0
- package/es/plugins/replay/index.js +109 -0
- package/es/plugins/replay/index.scss +41 -0
- package/es/plugins/rotate/index.css +0 -0
- package/es/plugins/rotate/index.d.ts +22 -0
- package/es/plugins/rotate/index.js +148 -0
- package/es/plugins/rotate/index.scss +0 -0
- package/es/plugins/rotate/index2.js +2 -0
- package/es/plugins/screenShot/index.css +3 -0
- package/es/plugins/screenShot/index.d.ts +30 -0
- package/es/plugins/screenShot/index.js +178 -0
- package/es/plugins/screenShot/index.scss +5 -0
- package/es/plugins/start/index.css +91 -0
- package/es/plugins/start/index.d.ts +41 -0
- package/es/plugins/start/index.js +267 -0
- package/es/plugins/start/index.scss +115 -0
- package/es/plugins/stats/index.d.ts +38 -0
- package/es/plugins/stats/index.js +194 -0
- package/es/plugins/testspeed/index.d.ts +26 -0
- package/es/plugins/testspeed/index.js +207 -0
- package/es/plugins/time/index.css +46 -0
- package/es/plugins/time/index.d.ts +28 -0
- package/es/plugins/time/index.js +225 -0
- package/es/plugins/time/index.scss +57 -0
- package/es/plugins/time/timesegments.d.ts +24 -0
- package/es/plugins/time/timesegments.js +216 -0
- package/es/plugins/track/index.css +91 -0
- package/es/plugins/track/index.d.ts +132 -0
- package/es/plugins/track/index.js +463 -0
- package/es/plugins/track/index.scss +111 -0
- package/es/plugins/track/nativeSubTitle.d.ts +22 -0
- package/es/plugins/track/nativeSubTitle.js +94 -0
- package/es/plugins/volume/index.css +95 -0
- package/es/plugins/volume/index.d.ts +88 -0
- package/es/plugins/volume/index.js +319 -0
- package/es/plugins/volume/index.scss +124 -0
- package/es/plugins/waitingTimeoutJump/index.d.ts +15 -0
- package/es/plugins/waitingTimeoutJump/index.js +88 -0
- package/es/presets/default-en.d.ts +33 -0
- package/es/presets/default-en.js +63 -0
- package/es/presets/default.d.ts +34 -0
- package/es/presets/default.js +70 -0
- package/es/presets/index.d.ts +4 -0
- package/es/presets/live.d.ts +94 -0
- package/es/presets/live.js +39 -0
- package/es/presets/mobile.d.ts +103 -0
- package/es/presets/mobile.js +34 -0
- package/es/simple_player.js +1 -1
- package/es/simple_player.js.map +1 -1
- package/es/state.d.ts +11 -0
- package/es/state.js +12 -0
- package/es/stateClassMap.d.ts +32 -0
- package/es/stateClassMap.js +32 -0
- package/es/style/common/animation.scss +16 -0
- package/es/style/common/svg-url.scss +70 -0
- package/es/style/common.scss +457 -0
- package/es/style/index.scss +4 -0
- package/es/style/variable.scss +76 -0
- package/es/utils/database.d.ts +31 -0
- package/es/utils/database.js +107 -0
- package/es/utils/debug.d.ts +10 -0
- package/es/utils/debug.js +43 -0
- package/es/utils/draggabilly.d.ts +54 -0
- package/es/utils/draggabilly.js +410 -0
- package/es/utils/sniffer.d.ts +28 -0
- package/es/utils/sniffer.js +150 -0
- package/es/utils/url.d.ts +1 -0
- package/es/utils/util.d.ts +304 -0
- package/es/utils/util.js +827 -0
- package/es/utils/xgplayerTimeRange.d.ts +7 -0
- package/es/utils/xgplayerTimeRange.js +25 -0
- package/es/version.d.ts +2 -0
- package/es/version.js +2 -0
- package/package.json +2 -3
package/es/index.scss
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import "./style/index";
|
|
2
|
+
|
|
3
|
+
// @import "./plugins/play/index";
|
|
4
|
+
// @import "./plugins/start/index";
|
|
5
|
+
// @import "./plugins/enter/index";
|
|
6
|
+
// @import "./plugins/poster/index";
|
|
7
|
+
// @import "./plugins/fullscreen/index";
|
|
8
|
+
// @import "./plugins/cssFullScreen/index";
|
|
9
|
+
// @import "./plugins/volume/index";
|
|
10
|
+
// @import "./plugins/definition/index";
|
|
11
|
+
// @import "./plugins/time/index";
|
|
12
|
+
// @import "./plugins/controls/index";
|
|
13
|
+
// @import "./plugins/replay/index";
|
|
14
|
+
// @import "./plugins/progress/index";
|
|
15
|
+
// @import "./plugins/loading/index";
|
|
16
|
+
// @import "./plugins/playbackRate/index";
|
|
17
|
+
// @import "./plugins/download/index";
|
|
18
|
+
// @import "./plugins/pc/index";
|
|
19
|
+
// @import "./plugins/playNext/index";
|
|
20
|
+
// @import "./plugins/pip/index";
|
|
21
|
+
// @import "./plugins/rotate/index";
|
|
22
|
+
// @import "./plugins/screenShot/index";
|
|
23
|
+
|
|
24
|
+
// @import "./plugins/error/index";
|
|
25
|
+
// @import "./plugins/miniScreen/index";
|
|
26
|
+
// @import "./plugins/mobile/index";
|
|
27
|
+
// @import "./plugins/prompt/index";
|
|
28
|
+
// @import "./plugins/progressPreview/index";
|
|
29
|
+
// @import "./plugins/dynamicBg/index";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default PresetPlayer;
|
|
2
|
+
declare class PresetPlayer extends Player {
|
|
3
|
+
static defaultPreset: typeof defaultPreset;
|
|
4
|
+
static Util: typeof Util;
|
|
5
|
+
static Sniffer: import("./utils/sniffer").ISniffer;
|
|
6
|
+
static Errors: typeof Errors;
|
|
7
|
+
static Events: typeof Events;
|
|
8
|
+
static Plugin: typeof Plugin;
|
|
9
|
+
static BasePlugin: typeof BasePlugin;
|
|
10
|
+
static I18N: {
|
|
11
|
+
readonly textKeys: any[];
|
|
12
|
+
readonly langKeys: string[];
|
|
13
|
+
readonly lang: {
|
|
14
|
+
[propName: string]: {
|
|
15
|
+
[propName: string]: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
extend: (I18nText: import("./lang/i18n").IXGI18nText) => {};
|
|
19
|
+
use: (lang: import("./lang/i18n").IXGI18nText) => {};
|
|
20
|
+
init: (id: any) => import("./lang/i18n").IXGI18n;
|
|
21
|
+
};
|
|
22
|
+
static STATE_CLASS: {
|
|
23
|
+
DEFAULT: string;
|
|
24
|
+
DEFAULT_SKIN: string;
|
|
25
|
+
ENTER: string;
|
|
26
|
+
PAUSED: string;
|
|
27
|
+
PLAYING: string;
|
|
28
|
+
ENDED: string;
|
|
29
|
+
CANPLAY: string;
|
|
30
|
+
LOADING: string;
|
|
31
|
+
ERROR: string;
|
|
32
|
+
REPLAY: string;
|
|
33
|
+
NO_START: string;
|
|
34
|
+
ACTIVE: string;
|
|
35
|
+
INACTIVE: string;
|
|
36
|
+
FULLSCREEN: string;
|
|
37
|
+
CSS_FULLSCREEN: string;
|
|
38
|
+
ROTATE_FULLSCREEN: string;
|
|
39
|
+
PARENT_ROTATE_FULLSCREEN: string;
|
|
40
|
+
PARENT_FULLSCREEN: string;
|
|
41
|
+
INNER_FULLSCREEN: string;
|
|
42
|
+
NO_CONTROLS: string;
|
|
43
|
+
FLEX_CONTROLS: string;
|
|
44
|
+
CONTROLS_FOLLOW: string;
|
|
45
|
+
CONTROLS_AUTOHIDE: string;
|
|
46
|
+
TOP_BAR_AUTOHIDE: string;
|
|
47
|
+
NOT_ALLOW_AUTOPLAY: string;
|
|
48
|
+
SEEKING: string;
|
|
49
|
+
PC: string;
|
|
50
|
+
MOBILE: string;
|
|
51
|
+
MINI: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
import Player from "./player";
|
|
55
|
+
import defaultPreset from "./presets/default";
|
|
56
|
+
import Util from "./utils/util";
|
|
57
|
+
import Errors from "./error";
|
|
58
|
+
import * as Events from "./events";
|
|
59
|
+
import Plugin from "./plugin/plugin";
|
|
60
|
+
import BasePlugin from "./plugin/basePlugin";
|
package/es/index.umd.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, createClass as _createClass, classCallCheck as _classCallCheck } from "./_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import Player from "./player.js";
|
|
3
|
+
import Plugin from "./plugin/plugin.js";
|
|
4
|
+
import BasePlugin from "./plugin/basePlugin.js";
|
|
5
|
+
import * as events from "./events.js";
|
|
6
|
+
import STATE_CLASS from "./stateClassMap.js";
|
|
7
|
+
import I18N from "./lang/i18n.js";
|
|
8
|
+
import Errors from "./error.js";
|
|
9
|
+
import sniffer from "./utils/sniffer.js";
|
|
10
|
+
import util from "./utils/util.js";
|
|
11
|
+
import DefaultPreset from "./presets/default.js";
|
|
12
|
+
var PresetPlayer = /* @__PURE__ */ function(_Player) {
|
|
13
|
+
_inherits(PresetPlayer2, _Player);
|
|
14
|
+
var _super = _createSuper(PresetPlayer2);
|
|
15
|
+
function PresetPlayer2() {
|
|
16
|
+
_classCallCheck(this, PresetPlayer2);
|
|
17
|
+
return _super.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
return _createClass(PresetPlayer2);
|
|
20
|
+
}(Player);
|
|
21
|
+
_defineProperty(PresetPlayer, "defaultPreset", DefaultPreset);
|
|
22
|
+
_defineProperty(PresetPlayer, "Util", util);
|
|
23
|
+
_defineProperty(PresetPlayer, "Sniffer", sniffer);
|
|
24
|
+
_defineProperty(PresetPlayer, "Errors", Errors);
|
|
25
|
+
_defineProperty(PresetPlayer, "Events", events);
|
|
26
|
+
_defineProperty(PresetPlayer, "Plugin", Plugin);
|
|
27
|
+
_defineProperty(PresetPlayer, "BasePlugin", BasePlugin);
|
|
28
|
+
_defineProperty(PresetPlayer, "I18N", I18N);
|
|
29
|
+
_defineProperty(PresetPlayer, "STATE_CLASS", STATE_CLASS);
|
|
30
|
+
export { PresetPlayer as default };
|
package/es/lang/en.d.ts
ADDED
|
@@ -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;
|
package/es/lang/en.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var EN = {
|
|
2
|
+
LANG: "en",
|
|
3
|
+
TEXT: {
|
|
4
|
+
ERROR_TYPES: {
|
|
5
|
+
network: {
|
|
6
|
+
code: 1,
|
|
7
|
+
msg: "video download error"
|
|
8
|
+
},
|
|
9
|
+
mse: {
|
|
10
|
+
code: 2,
|
|
11
|
+
msg: "stream append error"
|
|
12
|
+
},
|
|
13
|
+
parse: {
|
|
14
|
+
code: 3,
|
|
15
|
+
msg: "parsing error"
|
|
16
|
+
},
|
|
17
|
+
format: {
|
|
18
|
+
code: 4,
|
|
19
|
+
msg: "wrong format"
|
|
20
|
+
},
|
|
21
|
+
decoder: {
|
|
22
|
+
code: 5,
|
|
23
|
+
msg: "decoding error"
|
|
24
|
+
},
|
|
25
|
+
runtime: {
|
|
26
|
+
code: 6,
|
|
27
|
+
msg: "grammatical errors"
|
|
28
|
+
},
|
|
29
|
+
timeout: {
|
|
30
|
+
code: 7,
|
|
31
|
+
msg: "play timeout"
|
|
32
|
+
},
|
|
33
|
+
other: {
|
|
34
|
+
code: 8,
|
|
35
|
+
msg: "other errors"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
HAVE_NOTHING: "There is no information on whether audio/video is ready",
|
|
39
|
+
HAVE_METADATA: "Audio/video metadata is ready ",
|
|
40
|
+
HAVE_CURRENT_DATA: "Data about the current play location is available, but there is not enough data to play the next frame/millisecond",
|
|
41
|
+
HAVE_FUTURE_DATA: "Current and at least one frame of data is available",
|
|
42
|
+
HAVE_ENOUGH_DATA: "The available data is sufficient to start playing",
|
|
43
|
+
NETWORK_EMPTY: "Audio/video has not been initialized",
|
|
44
|
+
NETWORK_IDLE: "Audio/video is active and has been selected for resources, but no network is used",
|
|
45
|
+
NETWORK_LOADING: "The browser is downloading the data",
|
|
46
|
+
NETWORK_NO_SOURCE: "No audio/video source was found",
|
|
47
|
+
MEDIA_ERR_ABORTED: "The fetch process is aborted by the user",
|
|
48
|
+
MEDIA_ERR_NETWORK: "An error occurred while downloading",
|
|
49
|
+
MEDIA_ERR_DECODE: "An error occurred while decoding",
|
|
50
|
+
MEDIA_ERR_SRC_NOT_SUPPORTED: "Audio/video is not supported",
|
|
51
|
+
REPLAY: "Replay",
|
|
52
|
+
ERROR: "Network is offline",
|
|
53
|
+
PLAY_TIPS: "Play",
|
|
54
|
+
PAUSE_TIPS: "Pause",
|
|
55
|
+
PLAYNEXT_TIPS: "Play next",
|
|
56
|
+
DOWNLOAD_TIPS: "Download",
|
|
57
|
+
ROTATE_TIPS: "Rotate",
|
|
58
|
+
RELOAD_TIPS: "Reload",
|
|
59
|
+
FULLSCREEN_TIPS: "Fullscreen",
|
|
60
|
+
EXITFULLSCREEN_TIPS: "Exit fullscreen",
|
|
61
|
+
CSSFULLSCREEN_TIPS: "Cssfullscreen",
|
|
62
|
+
EXITCSSFULLSCREEN_TIPS: "Exit cssfullscreen",
|
|
63
|
+
TEXTTRACK: "Caption",
|
|
64
|
+
PIP: "PIP",
|
|
65
|
+
SCREENSHOT: "Screenshot",
|
|
66
|
+
LIVE: "LIVE",
|
|
67
|
+
OFF: "Off",
|
|
68
|
+
OPEN: "Open",
|
|
69
|
+
MINI_DRAG: "Click and hold to drag",
|
|
70
|
+
MINISCREEN: "Miniscreen",
|
|
71
|
+
REFRESH_TIPS: "Please Try",
|
|
72
|
+
REFRESH: "Refresh",
|
|
73
|
+
FORWARD: "forward",
|
|
74
|
+
LIVE_TIP: "Live"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
export { EN as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default I18N;
|
|
2
|
+
export type IXGI18nText = {
|
|
3
|
+
LANG: string;
|
|
4
|
+
TEXT: {
|
|
5
|
+
[propName: string]: any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type IXGI18n = {
|
|
9
|
+
lang: {
|
|
10
|
+
[propName: string]: IXGI18nText;
|
|
11
|
+
};
|
|
12
|
+
langKeys: Array<string>;
|
|
13
|
+
textKeys: {
|
|
14
|
+
[propName: string]: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare namespace I18N {
|
|
18
|
+
export { extend };
|
|
19
|
+
export { use };
|
|
20
|
+
export { init };
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param { Array<IXGI18nText> } i18nTextList
|
|
24
|
+
* @param { IXGI18n } [i18nLangs]
|
|
25
|
+
*/
|
|
26
|
+
declare function extend(i18nTextList: Array<IXGI18nText>, i18nLangs?: IXGI18n): void;
|
|
27
|
+
/**
|
|
28
|
+
* @param { IXGI18nText } langData
|
|
29
|
+
* @param { IXGI18n } [i18nLangs]
|
|
30
|
+
*/
|
|
31
|
+
declare function use(langData: IXGI18nText, i18nLangs?: IXGI18n): void;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @returns { IXGI18n }
|
|
35
|
+
*/
|
|
36
|
+
declare function init(id: any): IXGI18n;
|
package/es/lang/i18n.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { toConsumableArray as _toConsumableArray } from "../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import util from "../utils/util.js";
|
|
3
|
+
import EN from "./en.js";
|
|
4
|
+
var XGI18nLang = {
|
|
5
|
+
lang: {},
|
|
6
|
+
langKeys: [],
|
|
7
|
+
textKeys: []
|
|
8
|
+
};
|
|
9
|
+
function deepMerge(dst, src) {
|
|
10
|
+
Object.keys(src).forEach(function(key) {
|
|
11
|
+
var _s = util.typeOf(src[key]);
|
|
12
|
+
var _t = util.typeOf(dst[key]);
|
|
13
|
+
if (_s === "Array") {
|
|
14
|
+
var _dst$key;
|
|
15
|
+
if (_t !== "Array") {
|
|
16
|
+
dst[key] = [];
|
|
17
|
+
}
|
|
18
|
+
(_dst$key = dst[key]).push.apply(_dst$key, _toConsumableArray(src[key]));
|
|
19
|
+
} else if (_s === "Object") {
|
|
20
|
+
if (_t !== "Object") {
|
|
21
|
+
dst[key] = {};
|
|
22
|
+
}
|
|
23
|
+
deepMerge(dst[key], src[key]);
|
|
24
|
+
} else {
|
|
25
|
+
dst[key] = src[key];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return dst;
|
|
29
|
+
}
|
|
30
|
+
function updateKeys() {
|
|
31
|
+
Object.keys(XGI18nLang.lang.en).map(function(key) {
|
|
32
|
+
XGI18nLang.textKeys[key] = key;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function extend(i18nTextList, i18nLangs) {
|
|
36
|
+
var ext = [];
|
|
37
|
+
if (!i18nLangs) {
|
|
38
|
+
i18nLangs = XGI18nLang;
|
|
39
|
+
}
|
|
40
|
+
if (!i18nLangs.lang) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (util.typeOf(i18nTextList) !== "Array") {
|
|
44
|
+
ext = Object.keys(i18nTextList).map(function(lang2) {
|
|
45
|
+
var keyLang = lang2 === "zh" ? "zh-cn" : lang2;
|
|
46
|
+
return {
|
|
47
|
+
LANG: keyLang,
|
|
48
|
+
TEXT: i18nTextList[lang2]
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
} else {
|
|
52
|
+
ext = i18nTextList;
|
|
53
|
+
}
|
|
54
|
+
var _i18nLangs = i18nLangs, lang = _i18nLangs.lang;
|
|
55
|
+
ext.map(function(item) {
|
|
56
|
+
if (item.LANG === "zh") {
|
|
57
|
+
item.LANG = "zh-cn";
|
|
58
|
+
}
|
|
59
|
+
if (!lang[item.LANG]) {
|
|
60
|
+
use(item, i18nLangs);
|
|
61
|
+
} else {
|
|
62
|
+
deepMerge(lang[item.LANG] || {}, item.TEXT || {});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
updateKeys();
|
|
66
|
+
}
|
|
67
|
+
function use(langData, i18nLangs) {
|
|
68
|
+
var _clang = langData.LANG;
|
|
69
|
+
if (!i18nLangs) {
|
|
70
|
+
i18nLangs = XGI18nLang;
|
|
71
|
+
}
|
|
72
|
+
if (!i18nLangs.lang) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
var texts = langData.TEXT || {};
|
|
76
|
+
if (_clang === "zh") {
|
|
77
|
+
_clang = "zh-cn";
|
|
78
|
+
}
|
|
79
|
+
if (!i18nLangs.lang[_clang]) {
|
|
80
|
+
i18nLangs.langKeys.push(_clang);
|
|
81
|
+
i18nLangs.lang[_clang] = texts;
|
|
82
|
+
} else {
|
|
83
|
+
deepMerge(i18nLangs.lang[_clang], texts);
|
|
84
|
+
}
|
|
85
|
+
updateKeys();
|
|
86
|
+
}
|
|
87
|
+
function init(id) {
|
|
88
|
+
var _ret$langKeys;
|
|
89
|
+
var ret = {
|
|
90
|
+
lang: {},
|
|
91
|
+
langKeys: [],
|
|
92
|
+
textKeys: {},
|
|
93
|
+
pId: id
|
|
94
|
+
};
|
|
95
|
+
deepMerge(ret.lang, XGI18nLang.lang);
|
|
96
|
+
(_ret$langKeys = ret.langKeys).push.apply(_ret$langKeys, _toConsumableArray(XGI18nLang.langKeys));
|
|
97
|
+
deepMerge(ret.textKeys, XGI18nLang.textKeys);
|
|
98
|
+
return ret;
|
|
99
|
+
}
|
|
100
|
+
use(EN);
|
|
101
|
+
var I18N = {
|
|
102
|
+
get textKeys() {
|
|
103
|
+
return XGI18nLang.textKeys;
|
|
104
|
+
},
|
|
105
|
+
get langKeys() {
|
|
106
|
+
return XGI18nLang.langKeys;
|
|
107
|
+
},
|
|
108
|
+
get lang() {
|
|
109
|
+
var ret = {};
|
|
110
|
+
XGI18nLang.langKeys.map(function(key) {
|
|
111
|
+
ret[key] = XGI18nLang.lang[key];
|
|
112
|
+
});
|
|
113
|
+
if (XGI18nLang.lang["zh-cn"]) {
|
|
114
|
+
ret.zh = XGI18nLang.lang["zh-cn"] || {};
|
|
115
|
+
}
|
|
116
|
+
return ret;
|
|
117
|
+
},
|
|
118
|
+
extend,
|
|
119
|
+
use,
|
|
120
|
+
init
|
|
121
|
+
};
|
|
122
|
+
export { I18N as default };
|
package/es/lang/jp.d.ts
ADDED
|
@@ -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: string;
|
|
86
|
+
const REFRESH_TIPS: string;
|
|
87
|
+
const FORWARD: string;
|
|
88
|
+
const LIVE_TIP: string;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export default _default;
|
package/es/lang/jp.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var jp = {
|
|
2
|
+
LANG: "jp",
|
|
3
|
+
TEXT: {
|
|
4
|
+
ERROR_TYPES: {
|
|
5
|
+
network: {
|
|
6
|
+
code: 1,
|
|
7
|
+
msg: "\u30D3\u30C7\u30AA\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u30A8\u30E9\u30FC"
|
|
8
|
+
},
|
|
9
|
+
mse: {
|
|
10
|
+
code: 2,
|
|
11
|
+
msg: "\u30B9\u30C8\u30EA\u30FC\u30E0\u8FFD\u52A0\u30A8\u30E9\u30FC"
|
|
12
|
+
},
|
|
13
|
+
parse: {
|
|
14
|
+
code: 3,
|
|
15
|
+
msg: "\u89E3\u6790\u30A8\u30E9\u30FC"
|
|
16
|
+
},
|
|
17
|
+
format: {
|
|
18
|
+
code: 4,
|
|
19
|
+
msg: "\u9593\u9055\u3063\u305F\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8"
|
|
20
|
+
},
|
|
21
|
+
decoder: {
|
|
22
|
+
code: 5,
|
|
23
|
+
msg: "\u30C7\u30B3\u30FC\u30C9\u30A8\u30E9\u30FC"
|
|
24
|
+
},
|
|
25
|
+
runtime: {
|
|
26
|
+
code: 6,
|
|
27
|
+
msg: "\u6587\u6CD5\u30A8\u30E9\u30FC"
|
|
28
|
+
},
|
|
29
|
+
timeout: {
|
|
30
|
+
code: 7,
|
|
31
|
+
msg: "\u518D\u751F\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8"
|
|
32
|
+
},
|
|
33
|
+
other: {
|
|
34
|
+
code: 8,
|
|
35
|
+
msg: "\u305D\u306E\u4ED6\u306E\u30A8\u30E9\u30FC"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
HAVE_NOTHING: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u304C\u6E96\u5099\u3067\u304D\u3066\u3044\u308B\u304B\u60C5\u5831\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
39
|
+
HAVE_METADATA: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u306E\u30E1\u30BF\u30C7\u30FC\u30BF\u306F\u6E96\u5099\u3067\u304D\u3066\u3044\u307E\u3059",
|
|
40
|
+
HAVE_CURRENT_DATA: "\u73FE\u5728\u306E\u518D\u751F\u4F4D\u7F6E\u306B\u95A2\u3059\u308B\u30C7\u30FC\u30BF\u306F\u5229\u7528\u53EF\u80FD\u3067\u3059\u304C\u3001\u6B21\u306E\u30D5\u30EC\u30FC\u30E0/\u30DF\u30EA\u79D2\u3092\u518D\u751F\u3059\u308B\u306E\u306B\u5341\u5206\u306A\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
41
|
+
HAVE_FUTURE_DATA: "\u73FE\u5728\u3001\u5C11\u306A\u304F\u3068\u3082\u6B21\u306E\u30D5\u30EC\u30FC\u30E0\u306E\u30C7\u30FC\u30BF\u304C\u5229\u7528\u53EF\u80FD\u3067\u3059",
|
|
42
|
+
HAVE_ENOUGH_DATA: "\u5229\u7528\u53EF\u80FD\u306A\u30C7\u30FC\u30BF\u306F\u518D\u751F\u3092\u958B\u59CB\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059",
|
|
43
|
+
NETWORK_EMPTY: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u304C\u521D\u671F\u5316\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
44
|
+
NETWORK_IDLE: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u306F\u30A2\u30AF\u30C6\u30A3\u30D6\u3067\u30EA\u30BD\u30FC\u30B9\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304C\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
45
|
+
NETWORK_LOADING: "\u30D6\u30E9\u30A6\u30B6\u30FC\u306F\u30C7\u30FC\u30BF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u3044\u307E\u3059",
|
|
46
|
+
NETWORK_NO_SOURCE: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA \u306E\u30BD\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
47
|
+
MEDIA_ERR_ABORTED: "\u30E6\u30FC\u30B6\u30FC\u306B\u3088\u3063\u3066\u30D5\u30A7\u30C3\u30C1\u30D7\u30ED\u30BB\u30B9\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F",
|
|
48
|
+
MEDIA_ERR_NETWORK: "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F",
|
|
49
|
+
MEDIA_ERR_DECODE: "\u30C7\u30B3\u30FC\u30C9\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F",
|
|
50
|
+
MEDIA_ERR_SRC_NOT_SUPPORTED: "\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA \u306E\u5F62\u5F0F\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
51
|
+
REPLAY: "\u30EA\u30D7\u30EC\u30A4",
|
|
52
|
+
ERROR: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F",
|
|
53
|
+
PLAY_TIPS: "\u30D7\u30EC\u30A4",
|
|
54
|
+
PAUSE_TIPS: "\u4E00\u6642\u505C\u6B62",
|
|
55
|
+
PLAYNEXT_TIPS: "\u6B21\u3092\u30D7\u30EC\u30A4",
|
|
56
|
+
DOWNLOAD_TIPS: "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
57
|
+
ROTATE_TIPS: "\u56DE\u8EE2",
|
|
58
|
+
RELOAD_TIPS: "\u518D\u8AAD\u307F\u8FBC\u307F",
|
|
59
|
+
FULLSCREEN_TIPS: "\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",
|
|
60
|
+
EXITFULLSCREEN_TIPS: "\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3\u3092\u7D42\u4E86",
|
|
61
|
+
CSSFULLSCREEN_TIPS: "\u30B7\u30A2\u30BF\u30FC\u30E2\u30FC\u30C9",
|
|
62
|
+
EXITCSSFULLSCREEN_TIPS: "\u30B7\u30A2\u30BF\u30FC\u30E2\u30FC\u30C9\u3092\u7D42\u4E86",
|
|
63
|
+
TEXTTRACK: "\u5B57\u5E55",
|
|
64
|
+
PIP: "\u30DF\u30CB\u30D7\u30EC\u30FC\u30E4\u30FC",
|
|
65
|
+
SCREENSHOT: "\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",
|
|
66
|
+
LIVE: "\u751F\u653E\u9001",
|
|
67
|
+
OFF: "\u30AA\u30D5",
|
|
68
|
+
OPEN: "\u958B\u3044\u305F",
|
|
69
|
+
MINI_DRAG: "\u30DC\u30BF\u30F3\u3092\u62BC\u3057\u3066\u50CD\u753B\u3092\u30C9\u30E9\u30C3\u30B0\u3059\u308B",
|
|
70
|
+
MINISCREEN: "\u5C0F\u3055\u306A\u753B\u9762",
|
|
71
|
+
REFRESH: "\u30EA\u30D5\u30EC\u30C3\u30B7\u30E5",
|
|
72
|
+
REFRESH_TIPS: "\u3057\u3066\u307F\u3066\u304F\u3060\u3055\u3044",
|
|
73
|
+
FORWARD: "\u65E9\u9001\u308A",
|
|
74
|
+
LIVE_TIP: "\u751F\u653E\u9001"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
export { jp as default };
|