@xiping/react-components 1.0.49 → 1.0.51
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/cjs/components/gradient-text/index.js +1 -1
- package/dist/cjs/components/message/Message.js +1 -1
- package/dist/cjs/components/subtitle-player/CurrentMode.d.ts +20 -0
- package/dist/cjs/components/subtitle-player/CurrentMode.js +2 -0
- package/dist/cjs/components/subtitle-player/LyricsMode.d.ts +26 -0
- package/dist/cjs/components/subtitle-player/LyricsMode.js +2 -0
- package/dist/cjs/components/subtitle-player/SubtitlePlayer.d.ts +3 -2
- package/dist/cjs/components/subtitle-player/SubtitlePlayer.js +1 -3
- package/dist/cjs/components/subtitle-player/utils.d.ts +28 -0
- package/dist/cjs/components/subtitle-player/utils.js +1 -0
- package/dist/cjs/components/text-animate/TextAnimate.js +1 -1
- package/dist/cjs/components/text-type/TextType.js +1 -1
- package/dist/cjs/components/txt-reader/TxtReader.js +1 -1
- package/dist/cjs/components/txt-reader/index.module.css.js +1 -1
- package/dist/cjs/components/variable-proximity/index.js +1 -1
- package/dist/cjs/components/video-subtitle-player/VideoSubtitlePlayer.js +1 -1
- package/dist/cjs/components/video-subtitle-player/useVideoSubtitleStore.js +1 -1
- package/dist/cjs/react-components.css +1 -1
- package/dist/es/components/gradient-text/index.js +8 -8
- package/dist/es/components/message/Message.js +72 -72
- package/dist/es/components/subtitle-player/CurrentMode.d.ts +20 -0
- package/dist/es/components/subtitle-player/CurrentMode.js +40 -0
- package/dist/es/components/subtitle-player/LyricsMode.d.ts +26 -0
- package/dist/es/components/subtitle-player/LyricsMode.js +67 -0
- package/dist/es/components/subtitle-player/SubtitlePlayer.d.ts +3 -2
- package/dist/es/components/subtitle-player/SubtitlePlayer.js +121 -238
- package/dist/es/components/subtitle-player/utils.d.ts +28 -0
- package/dist/es/components/subtitle-player/utils.js +72 -0
- package/dist/es/components/text-animate/TextAnimate.js +0 -1
- package/dist/es/components/text-type/TextType.js +31 -31
- package/dist/es/components/txt-reader/TxtReader.js +9 -9
- package/dist/es/components/txt-reader/index.module.css.js +7 -8
- package/dist/es/components/variable-proximity/index.js +8 -9
- package/dist/es/components/video-subtitle-player/VideoSubtitlePlayer.js +64 -64
- package/dist/es/components/video-subtitle-player/useVideoSubtitleStore.js +1 -1
- package/dist/es/react-components.css +1 -1
- package/package.json +14 -14
- package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
- package/dist/cjs/_virtual/delegate.js +0 -1
- package/dist/cjs/_virtual/download.js +0 -1
- package/dist/cjs/_virtual/download2.js +0 -1
- package/dist/cjs/_virtual/index.js +0 -1
- package/dist/cjs/_virtual/index2.js +0 -1
- package/dist/cjs/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/closest.js +0 -1
- package/dist/cjs/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/delegate.js +0 -1
- package/dist/cjs/node_modules/.pnpm/downloadjs@1.4.7/node_modules/downloadjs/download.js +0 -3
- package/dist/cjs/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +0 -2
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/constant.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/defaultConfig.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/error.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/events.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/index.umd.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/instManager.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/en.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/i18n.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/zh-cn.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/mediaProxy.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/player.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/basePlugin.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/hooksDescriptor.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/plugin.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/pluginsManager.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/preset.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/resizeObserver.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/back.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/download.js +0 -15
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitFull.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/loading.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pause.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIcon.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +0 -8
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/play.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/playNext.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/replay.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestFull.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/rotate.js +0 -12
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/seekicon.js +0 -7
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconPlugin.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconTools.js +0 -3
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionList.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionsIcon.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/thumbnail.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/controls/index.js +0 -9
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/definition/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/download/index.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/dynamicBg/index.js +0 -2
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/enter/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/error/index.js +0 -6
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fpsDetect/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +0 -2
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/index.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/gapJump/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/keyboard/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/loading/index.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/logger/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/index.js +0 -13
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/index.js +0 -19
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/touch.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pc/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pip/index.js +0 -8
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/play/index.js +0 -5
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playNext/index.js +0 -7
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playbackRate/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/poster/index.js +0 -2
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/index.js +0 -7
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/innerList.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/miniProgress.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/index.js +0 -11
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/prompt/index.js +0 -3
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/replay/index.js +0 -3
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/rotate/index.js +0 -6
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/screenShot/index.js +0 -6
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/start/index.js +0 -4
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/stats/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/testspeed/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/index.js +0 -6
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/timesegments.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/volume/index.js +0 -11
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/presets/default.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/state.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/stateClassMap.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/database.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/debug.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/draggabilly.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/sniffer.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/util.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +0 -1
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/version.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/react.js +0 -1
- package/dist/cjs/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.js +0 -1
- package/dist/es/_virtual/_commonjsHelpers.js +0 -6
- package/dist/es/_virtual/delegate.js +0 -7
- package/dist/es/_virtual/download.js +0 -7
- package/dist/es/_virtual/download2.js +0 -4
- package/dist/es/_virtual/index.js +0 -8
- package/dist/es/_virtual/index2.js +0 -4
- package/dist/es/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/closest.js +0 -21
- package/dist/es/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/delegate.js +0 -29
- package/dist/es/node_modules/.pnpm/downloadjs@1.4.7/node_modules/downloadjs/download.js +0 -77
- package/dist/es/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -111
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +0 -197
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/constant.js +0 -7
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/defaultConfig.js +0 -87
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/error.js +0 -64
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/events.js +0 -67
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/index.umd.js +0 -45
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/instManager.js +0 -101
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/en.js +0 -79
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/i18n.js +0 -75
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/zh-cn.js +0 -79
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/mediaProxy.js +0 -466
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/player.js +0 -1240
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/basePlugin.js +0 -207
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/hooksDescriptor.js +0 -130
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/plugin.js +0 -366
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/pluginsManager.js +0 -204
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/preset.js +0 -14
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/resizeObserver.js +0 -81
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/back.js +0 -10
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/download.js +0 -20
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitFull.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/loading.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pause.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIcon.js +0 -10
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +0 -13
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/play.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/playNext.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/replay.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestFull.js +0 -9
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/rotate.js +0 -17
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/seekicon.js +0 -12
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +0 -10
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +0 -10
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +0 -10
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconPlugin.js +0 -35
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconTools.js +0 -12
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionList.js +0 -79
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionsIcon.js +0 -193
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/thumbnail.js +0 -141
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/controls/index.js +0 -171
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +0 -105
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/definition/index.js +0 -110
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/download/index.js +0 -83
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/dynamicBg/index.js +0 -232
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/enter/index.js +0 -42
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/error/index.js +0 -68
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fpsDetect/index.js +0 -116
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +0 -68
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/index.js +0 -150
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/gapJump/index.js +0 -96
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/keyboard/index.js +0 -299
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/loading/index.js +0 -46
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/logger/index.js +0 -171
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/index.js +0 -169
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +0 -55
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/index.js +0 -448
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/touch.js +0 -138
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pc/index.js +0 -122
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pip/index.js +0 -216
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/play/index.js +0 -102
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playNext/index.js +0 -78
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playbackRate/index.js +0 -100
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/poster/index.js +0 -119
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/index.js +0 -431
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/innerList.js +0 -215
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/miniProgress.js +0 -93
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +0 -175
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/index.js +0 -292
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/prompt/index.js +0 -86
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/replay/index.js +0 -92
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/rotate/index.js +0 -106
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/screenShot/index.js +0 -134
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/start/index.js +0 -222
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/stats/index.js +0 -152
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/testspeed/index.js +0 -134
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/index.js +0 -164
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/timesegments.js +0 -146
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/volume/index.js +0 -206
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +0 -53
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/presets/default.js +0 -61
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/state.js +0 -13
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/stateClassMap.js +0 -34
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/database.js +0 -83
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/debug.js +0 -34
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/draggabilly.js +0 -271
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/sniffer.js +0 -111
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/util.js +0 -517
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +0 -25
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/version.js +0 -4
- package/dist/es/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/react.js +0 -19
- package/dist/es/node_modules/.pnpm/zustand@5.0.9_@types_react@19.2.7_react@19.2.3_use-sync-external-store@1.6.0_react@19.2.3_/node_modules/zustand/esm/vanilla.js +0 -14
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { inherits as y, createSuper as m, classCallCheck as I, createClass as C, objectSpread2 as a, get as l, getPrototypeOf as c } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import D from "../../utils/util.js";
|
|
3
|
-
import { DEFINITION_CHANGE as k } from "../../events.js";
|
|
4
|
-
import { POSITIONS as _ } from "../../plugin/plugin.js";
|
|
5
|
-
import h from "../common/optionsIcon.js";
|
|
6
|
-
var N = /* @__PURE__ */ (function(g) {
|
|
7
|
-
y(r, g);
|
|
8
|
-
var d = m(r);
|
|
9
|
-
function r(o) {
|
|
10
|
-
var t;
|
|
11
|
-
return I(this, r), t = d.call(this, o), t.curTime = 0, t.isPaused = !0, t;
|
|
12
|
-
}
|
|
13
|
-
return C(r, [{
|
|
14
|
-
key: "beforeCreate",
|
|
15
|
-
value: function(t) {
|
|
16
|
-
var i = t.config.list;
|
|
17
|
-
Array.isArray(i) && i.length > 0 && (t.config.list = i.map(function(e) {
|
|
18
|
-
return !e.text && e.name && (e.text = e.name), e.text || (e.text = e.definition), e;
|
|
19
|
-
}));
|
|
20
|
-
}
|
|
21
|
-
}, {
|
|
22
|
-
key: "afterCreate",
|
|
23
|
-
value: function() {
|
|
24
|
-
var t = this;
|
|
25
|
-
l(c(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
|
|
26
|
-
t.changeDefinitionList(i);
|
|
27
|
-
}), this.on(k, function(i) {
|
|
28
|
-
t.renderItemList(t.config.list, i.to);
|
|
29
|
-
}), this.player.definitionList.length < 2 && this.hide();
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
key: "show",
|
|
33
|
-
value: function(t) {
|
|
34
|
-
!this.config.list || this.config.list.length < 2 || D.addClass(this.root, "show");
|
|
35
|
-
}
|
|
36
|
-
}, {
|
|
37
|
-
key: "initDefinition",
|
|
38
|
-
value: function() {
|
|
39
|
-
var t = this.config, i = t.list, e = t.defaultDefinition;
|
|
40
|
-
if (i.length > 0) {
|
|
41
|
-
var n = null;
|
|
42
|
-
i.map(function(s) {
|
|
43
|
-
s.definition === e && (n = s);
|
|
44
|
-
}), n || (n = i[0]), this.changeDefinition(n);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
key: "renderItemList",
|
|
49
|
-
value: function() {
|
|
50
|
-
var t = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.list || [], e = arguments.length > 1 ? arguments[1] : void 0, n = e && e.definition ? e.definition : this.config.defaultDefinition;
|
|
51
|
-
e && i.forEach(function(f) {
|
|
52
|
-
f.selected = !1;
|
|
53
|
-
});
|
|
54
|
-
var s = 0, p = i.map(function(f, v) {
|
|
55
|
-
var u = a(a({}, f), {}, {
|
|
56
|
-
showText: t.getTextByLang(f) || f.definition,
|
|
57
|
-
selected: !1
|
|
58
|
-
});
|
|
59
|
-
return (f.selected || f.definition && f.definition == n) && (u.selected = !0, s = v), u;
|
|
60
|
-
});
|
|
61
|
-
l(c(r.prototype), "renderItemList", this).call(this, p, s);
|
|
62
|
-
}
|
|
63
|
-
}, {
|
|
64
|
-
key: "changeDefinitionList",
|
|
65
|
-
value: function(t) {
|
|
66
|
-
Array.isArray(t) && (this.config.list = t.map(function(i) {
|
|
67
|
-
return !i.text && i.name && (i.text = i.name), i.text || (i.text = i.definition), i;
|
|
68
|
-
}), this.renderItemList(), this.config.list.length < 2 ? this.hide() : this.show());
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
key: "changeDefinition",
|
|
72
|
-
value: function(t, i) {
|
|
73
|
-
this.player.changeDefinition(t, i);
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
key: "onItemClick",
|
|
77
|
-
value: function(t, i) {
|
|
78
|
-
var e = this.player.definitionList;
|
|
79
|
-
l(c(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(t, "change_definition", {
|
|
80
|
-
from: i.from,
|
|
81
|
-
to: i.to
|
|
82
|
-
});
|
|
83
|
-
for (var n = 0; n < e.length; n++)
|
|
84
|
-
i.to && e[n].definition === i.to.definition && (i.to.url = e[n].url), i.from && e[n].definition === i.from.definition && (i.from.url = e[n].url);
|
|
85
|
-
this.player.changeDefinition(i.to, i.from);
|
|
86
|
-
}
|
|
87
|
-
}], [{
|
|
88
|
-
key: "pluginName",
|
|
89
|
-
get: function() {
|
|
90
|
-
return "definition";
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
key: "defaultConfig",
|
|
94
|
-
get: function() {
|
|
95
|
-
return a(a({}, h.defaultConfig), {}, {
|
|
96
|
-
position: _.CONTROLS_RIGHT,
|
|
97
|
-
index: 3,
|
|
98
|
-
list: [],
|
|
99
|
-
defaultDefinition: "",
|
|
100
|
-
disable: !1,
|
|
101
|
-
hidePortrait: !1,
|
|
102
|
-
className: "xgplayer-definition",
|
|
103
|
-
isShowIcon: !0
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}]), r;
|
|
107
|
-
})(h);
|
|
108
|
-
export {
|
|
109
|
-
N as default
|
|
110
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { inherits as f, createSuper as h, classCallCheck as p, defineProperty as g, assertThisInitialized as m, createClass as y, get as a, getPrototypeOf as s } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import w from "../../../../../../../../_virtual/download.js";
|
|
3
|
-
import l from "../../utils/util.js";
|
|
4
|
-
import { POSITIONS as k } from "../../plugin/plugin.js";
|
|
5
|
-
import { xgIconTips as v } from "../common/iconTools.js";
|
|
6
|
-
import C from "../common/iconPlugin.js";
|
|
7
|
-
import _ from "../assets/download.js";
|
|
8
|
-
var P = /* @__PURE__ */ (function(c) {
|
|
9
|
-
f(i, c);
|
|
10
|
-
var d = h(i);
|
|
11
|
-
function i(t) {
|
|
12
|
-
var e;
|
|
13
|
-
return p(this, i), e = d.call(this, t), g(m(e), "download", function(r) {
|
|
14
|
-
if (!e.isLock) {
|
|
15
|
-
e.emitUserAction(r, "download");
|
|
16
|
-
var o = e.playerConfig.url, n = "";
|
|
17
|
-
l.typeOf(o) === "String" ? n = o : l.typeOf(o) === "Array" && o.length > 0 && (n = o[0].src);
|
|
18
|
-
var u = e.getAbsoluteURL(n);
|
|
19
|
-
w(u), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
20
|
-
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
21
|
-
}, 300);
|
|
22
|
-
}
|
|
23
|
-
}), e.timer = null, e.isLock = !1, e;
|
|
24
|
-
}
|
|
25
|
-
return y(i, [{
|
|
26
|
-
key: "afterCreate",
|
|
27
|
-
value: function() {
|
|
28
|
-
a(s(i.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
|
|
29
|
-
pre: function(r) {
|
|
30
|
-
r.preventDefault(), r.stopPropagation();
|
|
31
|
-
}
|
|
32
|
-
}), this.bind(["click", "touchend"], this._handler));
|
|
33
|
-
}
|
|
34
|
-
}, {
|
|
35
|
-
key: "registerIcons",
|
|
36
|
-
value: function() {
|
|
37
|
-
return {
|
|
38
|
-
download: _
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}, {
|
|
42
|
-
key: "getAbsoluteURL",
|
|
43
|
-
value: function(e) {
|
|
44
|
-
if (!e.match(/^https?:\/\//)) {
|
|
45
|
-
var r = document.createElement("div");
|
|
46
|
-
r.innerHTML = '<a href="'.concat(e, '">x</a>'), e = r.firstChild.href;
|
|
47
|
-
}
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
}, {
|
|
51
|
-
key: "destroy",
|
|
52
|
-
value: function() {
|
|
53
|
-
a(s(i.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function() {
|
|
58
|
-
if (!this.config.disable)
|
|
59
|
-
return `<xg-icon class="xgplayer-download">
|
|
60
|
-
<div class="xgplayer-icon">
|
|
61
|
-
</div>
|
|
62
|
-
`.concat(v(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
|
|
63
|
-
</xg-icon>`);
|
|
64
|
-
}
|
|
65
|
-
}], [{
|
|
66
|
-
key: "pluginName",
|
|
67
|
-
get: function() {
|
|
68
|
-
return "download";
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
key: "defaultConfig",
|
|
72
|
-
get: function() {
|
|
73
|
-
return {
|
|
74
|
-
position: k.CONTROLS_RIGHT,
|
|
75
|
-
index: 3,
|
|
76
|
-
disable: !0
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}]), i;
|
|
80
|
-
})(C);
|
|
81
|
-
export {
|
|
82
|
-
P as default
|
|
83
|
-
};
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { inherits as E, createSuper as k, classCallCheck as b, defineProperty as h, assertThisInitialized as d, createClass as _ } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import l from "../../utils/util.js";
|
|
3
|
-
import g from "../../utils/sniffer.js";
|
|
4
|
-
import { TIME_UPDATE as y, COMPLETE as w, EMPTIED as R, PLAY as x, PAUSE as O, LOADED_DATA as A, LOAD_START as L } from "../../events.js";
|
|
5
|
-
import T from "../../utils/debug.js";
|
|
6
|
-
import F from "../../plugin/plugin.js";
|
|
7
|
-
var u = {
|
|
8
|
-
REAL_TIME: "realtime",
|
|
9
|
-
FIRST_FRAME: "firstframe",
|
|
10
|
-
POSTER: "poster"
|
|
11
|
-
};
|
|
12
|
-
function D() {
|
|
13
|
-
try {
|
|
14
|
-
return parseInt(window.performance.now(), 10);
|
|
15
|
-
} catch {
|
|
16
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function M() {
|
|
20
|
-
try {
|
|
21
|
-
var v = document.createElement("canvas").getContext;
|
|
22
|
-
return !!v;
|
|
23
|
-
} catch {
|
|
24
|
-
return !1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
var m = null, U = /* @__PURE__ */ (function(v) {
|
|
28
|
-
E(f, v);
|
|
29
|
-
var p = k(f);
|
|
30
|
-
function f() {
|
|
31
|
-
var t;
|
|
32
|
-
b(this, f);
|
|
33
|
-
for (var e = arguments.length, a = new Array(e), i = 0; i < e; i++)
|
|
34
|
-
a[i] = arguments[i];
|
|
35
|
-
return t = p.call.apply(p, [this].concat(a)), h(d(t), "onLoadedData", function(n) {
|
|
36
|
-
t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(n), t.off(y, t.renderOnTimeupdate), t.on(y, t.renderOnTimeupdate));
|
|
37
|
-
}), h(d(t), "onVisibilitychange", function(n) {
|
|
38
|
-
document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
|
|
39
|
-
}), h(d(t), "renderOnTimeupdate", function(n) {
|
|
40
|
-
if (t._frameCount > 0)
|
|
41
|
-
t.renderOnce(), t._frameCount--;
|
|
42
|
-
else {
|
|
43
|
-
t._isLoaded = !0, t.off(y, t.renderOnTimeupdate);
|
|
44
|
-
var s = t.config.startInterval;
|
|
45
|
-
!t.player.paused && t._checkIfCanStart() && t.start(0, s);
|
|
46
|
-
}
|
|
47
|
-
}), h(d(t), "start", function(n, s) {
|
|
48
|
-
var r = t.player.video, o = D(), c = t.checkVideoIsSupport(r);
|
|
49
|
-
!c || !t.canvasCtx || (s || (s = t.interval), t.stop(), r.videoWidth && r.videoHeight && (t.videoPI = r.videoHeight > 0 ? parseInt(r.videoWidth / r.videoHeight * 100, 10) : 0, (t.config.mode === u.REAL_TIME || o - t.preTime >= s) && (r && r.videoWidth && t.update(c, t.videoPI), t.preTime = o)), t.frameId = t._loopType === "timer" ? l.setTimeout(d(t), t.start, s) : l.requestAnimationFrame(t.start));
|
|
50
|
-
}), h(d(t), "stop", function() {
|
|
51
|
-
t.frameId && (t._loopType === "timer" ? l.clearTimeout(d(t), t.frameId) : l.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
52
|
-
}), t;
|
|
53
|
-
}
|
|
54
|
-
return _(f, [{
|
|
55
|
-
key: "afterCreate",
|
|
56
|
-
value: function() {
|
|
57
|
-
var e = this;
|
|
58
|
-
this.playerConfig.dynamicBg === !0 && (this.config.disable = !1), f.isSupport || (this.config.disable = !0);
|
|
59
|
-
var a = this.config, i = a.disable, n = a.mode, s = a.frameRate;
|
|
60
|
-
i || (this._pos = {
|
|
61
|
-
width: 0,
|
|
62
|
-
height: 0,
|
|
63
|
-
rwidth: 0,
|
|
64
|
-
rheight: 0,
|
|
65
|
-
x: 0,
|
|
66
|
-
y: 0,
|
|
67
|
-
pi: 0
|
|
68
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / s, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== u.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(w, function() {
|
|
69
|
-
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
70
|
-
}), n !== u.POSTER && (n !== u.FIRST_FRAME && (this.on(R, function() {
|
|
71
|
-
e.stop();
|
|
72
|
-
}), this.on(x, function() {
|
|
73
|
-
var r = e.config.startInterval;
|
|
74
|
-
e._checkIfCanStart() && e.start(0, r);
|
|
75
|
-
}), this.on(O, function() {
|
|
76
|
-
e.stop();
|
|
77
|
-
})), this.on(A, this.onLoadedData), this.on(L, function() {
|
|
78
|
-
e._isLoaded = !1, e.stop();
|
|
79
|
-
}), document.addEventListener("visibilitychange", this.onVisibilitychange)));
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
key: "setConfig",
|
|
83
|
-
value: function(e) {
|
|
84
|
-
var a = this;
|
|
85
|
-
Object.keys(e).forEach(function(i) {
|
|
86
|
-
i === "root" && e[i] !== a.config[i] ? a.reRender(e[i]) : i === "frameRate" ? a.interval = parseInt(1e3 / e[i], 10) : i === "disable" && e[i] && a.stop(), a.config[i] = e[i];
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
key: "init",
|
|
91
|
-
value: function(e) {
|
|
92
|
-
var a = this.player, i = this.config;
|
|
93
|
-
this.canvasFilter = f.supportCanvasFilter();
|
|
94
|
-
try {
|
|
95
|
-
var n = e || i.root;
|
|
96
|
-
n || (n = i.isInnerRender && a.innerContainer || a.root), n.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(i.index, `"><canvas>
|
|
97
|
-
</canvas><xgmask></xgmask></div>`)), this.root = n.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = i.filter, this.canvas.style.webkitFilter = i.filter), this.mask = this.find("xgmask"), i.addMask && (this.mask.style.background = i.maskBg), this.canvasCtx = this.canvas.getContext("2d");
|
|
98
|
-
} catch (s) {
|
|
99
|
-
T.logError("plugin:DynamicBg", s);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
key: "reRender",
|
|
104
|
-
value: function(e) {
|
|
105
|
-
var a = this.config.disable;
|
|
106
|
-
if (!(!a && !this.root)) {
|
|
107
|
-
this.stop();
|
|
108
|
-
var i = this.root ? this.root.parentElement : null;
|
|
109
|
-
if (i !== e && i.removeChild(this.root), !e) {
|
|
110
|
-
this.root = null;
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
this.init(e), this.renderOnce();
|
|
114
|
-
var n = this.config.startInterval;
|
|
115
|
-
this._checkIfCanStart() && this.start(0, n);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "checkVideoIsSupport",
|
|
120
|
-
value: function(e) {
|
|
121
|
-
if (!e)
|
|
122
|
-
return null;
|
|
123
|
-
var a = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
|
|
124
|
-
if (a && !(g.browser === "safari" && l.isMSE(a)))
|
|
125
|
-
return a;
|
|
126
|
-
var i = a ? a.tagName.toLowerCase() : "";
|
|
127
|
-
return i === "canvas" || i === "img" ? a : null;
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
key: "renderByPoster",
|
|
131
|
-
value: function() {
|
|
132
|
-
var e = this.playerConfig.poster;
|
|
133
|
-
if (e) {
|
|
134
|
-
var a = l.typeOf(e) === "String" ? e : l.typeOf(e.poster) === "String" ? e.poster : null;
|
|
135
|
-
this.updateImg(a);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}, {
|
|
139
|
-
key: "_checkIfCanStart",
|
|
140
|
-
value: function() {
|
|
141
|
-
var e = this.config.mode;
|
|
142
|
-
return this._isLoaded && !this.player.paused && e !== u.FIRST_FRAME && e !== u.POSTER;
|
|
143
|
-
}
|
|
144
|
-
}, {
|
|
145
|
-
key: "renderOnce",
|
|
146
|
-
value: function() {
|
|
147
|
-
var e = this.player.video;
|
|
148
|
-
if (!(!e.videoWidth || !e.videoHeight)) {
|
|
149
|
-
this.videoPI = parseInt(e.videoWidth / e.videoHeight * 100, 10);
|
|
150
|
-
var a = this.checkVideoIsSupport(e);
|
|
151
|
-
a && this.update(a, this.videoPI);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "updateImg",
|
|
156
|
-
value: function(e) {
|
|
157
|
-
var a = this;
|
|
158
|
-
if (e) {
|
|
159
|
-
var i = this.canvas.getBoundingClientRect(), n = i.width, s = i.height, r = new window.Image();
|
|
160
|
-
r.onload = function() {
|
|
161
|
-
if (!(!a.canvas || a.frameId || a.isStart)) {
|
|
162
|
-
a.canvas.height = s, a.canvas.width = n;
|
|
163
|
-
var o = parseInt(n / s * 100, 10);
|
|
164
|
-
a.update(r, o), r = null;
|
|
165
|
-
}
|
|
166
|
-
}, r.src = e;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
key: "update",
|
|
171
|
-
value: function(e, a) {
|
|
172
|
-
if (!(!this.canvas || !this.canvasCtx || !a))
|
|
173
|
-
try {
|
|
174
|
-
var i = this._pos, n = this.config, s = this.canvas.getBoundingClientRect(), r = s.width, o = s.height;
|
|
175
|
-
if (r !== i.width || o !== i.height || i.pi !== a) {
|
|
176
|
-
var c = parseInt(r / o * 100, 10);
|
|
177
|
-
i.pi = a, i.width !== r && (i.width = this.canvas.width = r), i.height !== o && (i.height = this.canvas.height = o);
|
|
178
|
-
var I = o, C = r;
|
|
179
|
-
c < a ? C = parseInt(o * a / 100, 10) : c > a && (I = parseInt(r * 100 / a, 10)), i.rwidth = C * n.multiple, i.rheight = I * n.multiple, i.x = (r - i.rwidth) / 2, i.y = (o - i.rheight) / 2;
|
|
180
|
-
}
|
|
181
|
-
this.canvasFilter && (this.canvasCtx.filter = n.filter), this.canvasCtx.drawImage(e, i.x, i.y, i.rwidth, i.rheight);
|
|
182
|
-
} catch (S) {
|
|
183
|
-
T.logError("plugin:DynamicBg", S);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
key: "destroy",
|
|
188
|
-
value: function() {
|
|
189
|
-
this.stop(), document.removeEventListener("visibilitychange", this.onVisibilitychange), this.canvasCtx = null, this.canvas = null;
|
|
190
|
-
}
|
|
191
|
-
}, {
|
|
192
|
-
key: "render",
|
|
193
|
-
value: function() {
|
|
194
|
-
return "";
|
|
195
|
-
}
|
|
196
|
-
}], [{
|
|
197
|
-
key: "pluginName",
|
|
198
|
-
get: function() {
|
|
199
|
-
return "dynamicBg";
|
|
200
|
-
}
|
|
201
|
-
}, {
|
|
202
|
-
key: "defaultConfig",
|
|
203
|
-
get: function() {
|
|
204
|
-
return {
|
|
205
|
-
isInnerRender: !1,
|
|
206
|
-
disable: !0,
|
|
207
|
-
index: -1,
|
|
208
|
-
mode: "framerate",
|
|
209
|
-
frameRate: 10,
|
|
210
|
-
filter: "blur(50px)",
|
|
211
|
-
startFrameCount: 2,
|
|
212
|
-
startInterval: 0,
|
|
213
|
-
addMask: !0,
|
|
214
|
-
multiple: 1.2,
|
|
215
|
-
maskBg: "rgba(0,0,0,0.7)"
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
}, {
|
|
219
|
-
key: "isSupport",
|
|
220
|
-
get: function() {
|
|
221
|
-
return typeof m == "boolean" || (m = M()), m;
|
|
222
|
-
}
|
|
223
|
-
}, {
|
|
224
|
-
key: "supportCanvasFilter",
|
|
225
|
-
value: function() {
|
|
226
|
-
return !(g.browser === "safari" || g.browser === "firefox");
|
|
227
|
-
}
|
|
228
|
-
}]), f;
|
|
229
|
-
})(F);
|
|
230
|
-
export {
|
|
231
|
-
U as default
|
|
232
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { inherits as o, createSuper as c, classCallCheck as u, createClass as f } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import p from "../../utils/util.js";
|
|
3
|
-
import g from "../../plugin/plugin.js";
|
|
4
|
-
var h = /* @__PURE__ */ (function(s) {
|
|
5
|
-
o(r, s);
|
|
6
|
-
var l = c(r);
|
|
7
|
-
function r() {
|
|
8
|
-
return u(this, r), l.apply(this, arguments);
|
|
9
|
-
}
|
|
10
|
-
return f(r, [{
|
|
11
|
-
key: "render",
|
|
12
|
-
value: function() {
|
|
13
|
-
var e = this.config.innerHtml, n = p.createDom("xg-enter", "", {}, "xgplayer-enter");
|
|
14
|
-
if (e && e instanceof window.HTMLElement)
|
|
15
|
-
n.appendChild(e);
|
|
16
|
-
else if (e && typeof e == "string")
|
|
17
|
-
n.innerHTML = e;
|
|
18
|
-
else {
|
|
19
|
-
for (var i = "", t = 1; t <= 12; t++)
|
|
20
|
-
i += '<div class="xgplayer-enter-bar'.concat(t, '"></div>');
|
|
21
|
-
n.innerHTML = '<div class="xgplayer-enter-spinner">'.concat(i, "</div>");
|
|
22
|
-
}
|
|
23
|
-
return n;
|
|
24
|
-
}
|
|
25
|
-
}], [{
|
|
26
|
-
key: "pluginName",
|
|
27
|
-
get: function() {
|
|
28
|
-
return "enter";
|
|
29
|
-
}
|
|
30
|
-
}, {
|
|
31
|
-
key: "defaultConfig",
|
|
32
|
-
get: function() {
|
|
33
|
-
return {
|
|
34
|
-
innerHtml: "",
|
|
35
|
-
logo: ""
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}]), r;
|
|
39
|
-
})(g);
|
|
40
|
-
export {
|
|
41
|
-
h as default
|
|
42
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { inherits as l, createSuper as c, classCallCheck as h, createClass as p } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import { ERROR as u } from "../../events.js";
|
|
3
|
-
import y from "../../plugin/plugin.js";
|
|
4
|
-
var d = /* @__PURE__ */ (function(i) {
|
|
5
|
-
l(r, i);
|
|
6
|
-
var o = c(r);
|
|
7
|
-
function r() {
|
|
8
|
-
return h(this, r), o.apply(this, arguments);
|
|
9
|
-
}
|
|
10
|
-
return p(r, [{
|
|
11
|
-
key: "afterCreate",
|
|
12
|
-
value: function() {
|
|
13
|
-
var t = this;
|
|
14
|
-
this.clickHandler = this.hook("errorRetry", this.errorRetry, {
|
|
15
|
-
pre: function(s) {
|
|
16
|
-
s.preventDefault(), s.stopPropagation();
|
|
17
|
-
}
|
|
18
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(u, function(a) {
|
|
19
|
-
t.onError(a);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}, {
|
|
23
|
-
key: "errorRetry",
|
|
24
|
-
value: function(t) {
|
|
25
|
-
this.emitUserAction(t, "error_retry", {}), this.player.retry();
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
key: "handleError",
|
|
29
|
-
value: function() {
|
|
30
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = this.player, s = t.errorType, n = a.errorNote ? this.i18n[a.errorNote] : "";
|
|
31
|
-
if (!n)
|
|
32
|
-
switch (s) {
|
|
33
|
-
case "decoder":
|
|
34
|
-
n = this.i18n.MEDIA_ERR_DECODE;
|
|
35
|
-
break;
|
|
36
|
-
case "network":
|
|
37
|
-
n = this.i18n.MEDIA_ERR_NETWORK;
|
|
38
|
-
break;
|
|
39
|
-
default:
|
|
40
|
-
n = this.i18n.MEDIA_ERR_SRC_NOT_SUPPORTED;
|
|
41
|
-
}
|
|
42
|
-
this.find(".xgplayer-error-text").innerHTML = n, this.find(".xgplayer-error-tips").innerHTML = "".concat(this.i18n.REFRESH_TIPS, '<span class="xgplayer-error-refresh">').concat(this.i18n.REFRESH, "</span>");
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
key: "destroy",
|
|
46
|
-
value: function() {
|
|
47
|
-
this.unbind(".xgplayer-error-refresh", "click", this.clickHandler);
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
key: "render",
|
|
51
|
-
value: function() {
|
|
52
|
-
return `<xg-error class="xgplayer-error">
|
|
53
|
-
<div class="xgplayer-errornote">
|
|
54
|
-
<span class="xgplayer-error-text"></span>
|
|
55
|
-
<span class="xgplayer-error-tips"><em class="xgplayer-error-refresh"></em></span>
|
|
56
|
-
</div>
|
|
57
|
-
</xg-error>`;
|
|
58
|
-
}
|
|
59
|
-
}], [{
|
|
60
|
-
key: "pluginName",
|
|
61
|
-
get: function() {
|
|
62
|
-
return "error";
|
|
63
|
-
}
|
|
64
|
-
}]), r;
|
|
65
|
-
})(y);
|
|
66
|
-
export {
|
|
67
|
-
d as default
|
|
68
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { inherits as m, createSuper as v, classCallCheck as y, createClass as g } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
-
import { PLAY as C, PAUSE as S, ENDED as T, EMPTIED as P, FPS_STUCK as F } from "../../events.js";
|
|
3
|
-
import D from "../../plugin/plugin.js";
|
|
4
|
-
var E = /* @__PURE__ */ (function(f) {
|
|
5
|
-
m(o, f);
|
|
6
|
-
var l = v(o);
|
|
7
|
-
function o() {
|
|
8
|
-
return y(this, o), l.apply(this, arguments);
|
|
9
|
-
}
|
|
10
|
-
return g(o, [{
|
|
11
|
-
key: "afterCreate",
|
|
12
|
-
value: function() {
|
|
13
|
-
var e = this, i = this.player, r = this.config, s = i.media || i.video;
|
|
14
|
-
if (this.timer = null, this._lastDecodedFrames = 0, this._currentStuckCount = 0, this._lastCheckPoint = null, this._payload = [], !r.disabled) {
|
|
15
|
-
var t = s.getVideoPlaybackQuality;
|
|
16
|
-
t && (this.on(C, function() {
|
|
17
|
-
e._startTick();
|
|
18
|
-
}), this.on(S, function() {
|
|
19
|
-
e._stopTick();
|
|
20
|
-
}), this.on(T, function() {
|
|
21
|
-
e._stopTick();
|
|
22
|
-
}), this.on(P, function() {
|
|
23
|
-
e._stopTick();
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
key: "_startTick",
|
|
29
|
-
value: function() {
|
|
30
|
-
var e = this;
|
|
31
|
-
this._stopTick(), this._timer = setTimeout(function() {
|
|
32
|
-
e._checkDecodeFPS(), e._startTick();
|
|
33
|
-
}, this.config.tick);
|
|
34
|
-
}
|
|
35
|
-
}, {
|
|
36
|
-
key: "_stopTick",
|
|
37
|
-
value: function() {
|
|
38
|
-
clearTimeout(this._timer), this._timer = null;
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
key: "_checkBuffer",
|
|
42
|
-
value: function(e, i) {
|
|
43
|
-
for (var r = !1, s = [], t = 0; t < i.length; t++) {
|
|
44
|
-
var c = i.start(t), u = i.end(t);
|
|
45
|
-
if (s.push({
|
|
46
|
-
start: c,
|
|
47
|
-
end: u
|
|
48
|
-
}), c <= e && e <= u - 1) {
|
|
49
|
-
r = !0;
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
enoughBuffer: r,
|
|
55
|
-
buffers: s
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
key: "_checkStuck",
|
|
60
|
-
value: function(e, i, r, s) {
|
|
61
|
-
var t = this.player.media || this.player.video, c = document.hidden, u = t.paused, _ = t.readyState, n = t.currentTime, k = t.buffered;
|
|
62
|
-
if (!(c || u || _ < 4)) {
|
|
63
|
-
var h = this._checkBuffer(n, k), d = h.enoughBuffer, p = h.buffers;
|
|
64
|
-
d && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
|
|
65
|
-
currentTime: n,
|
|
66
|
-
buffers: p,
|
|
67
|
-
curDecodedFrames: e,
|
|
68
|
-
totalVideoFrames: i,
|
|
69
|
-
droppedVideoFrames: r,
|
|
70
|
-
checkInterval: s
|
|
71
|
-
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(F, this._payload), this._reset())) : this._reset());
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
key: "_reset",
|
|
76
|
-
value: function() {
|
|
77
|
-
this._payload = [], this._currentStuckCount = 0;
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
key: "_checkDecodeFPS",
|
|
81
|
-
value: function() {
|
|
82
|
-
var e = this.player.media || this.player.video;
|
|
83
|
-
if (e) {
|
|
84
|
-
var i = e.getVideoPlaybackQuality(), r = i.totalVideoFrames, s = i.droppedVideoFrames, t = performance.now();
|
|
85
|
-
if (r && this._lastCheckPoint) {
|
|
86
|
-
var c = r - this._lastDecodedFrames, u = t - this._lastCheckPoint;
|
|
87
|
-
this._checkStuck(c, r, s, u);
|
|
88
|
-
}
|
|
89
|
-
this._lastDecodedFrames = r, this._lastCheckPoint = t;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
key: "destroy",
|
|
94
|
-
value: function() {
|
|
95
|
-
this._stopTick();
|
|
96
|
-
}
|
|
97
|
-
}], [{
|
|
98
|
-
key: "pluginName",
|
|
99
|
-
get: function() {
|
|
100
|
-
return "FpsDetect";
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
key: "defaultConfig",
|
|
104
|
-
get: function() {
|
|
105
|
-
return {
|
|
106
|
-
disabled: !1,
|
|
107
|
-
tick: 1e3,
|
|
108
|
-
stuckCount: 3,
|
|
109
|
-
reportFrame: 0
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
}]), o;
|
|
113
|
-
})(D);
|
|
114
|
-
export {
|
|
115
|
-
E as default
|
|
116
|
-
};
|