@xiping/react-components 1.0.43 → 1.0.49
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/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/delegate.js +1 -0
- package/dist/cjs/_virtual/download.js +1 -0
- package/dist/cjs/_virtual/download2.js +1 -0
- package/dist/cjs/_virtual/index.js +1 -0
- package/dist/cjs/_virtual/index2.js +1 -0
- package/dist/cjs/components/shimmer-button/ShimmerButton.js +1 -1
- package/dist/cjs/components/shiny-button/ShinyButton.js +1 -1
- package/dist/cjs/components/sparkles-text/SparklesText.js +1 -1
- package/dist/cjs/components/subtitle-player/SubtitlePlayer.d.ts +51 -0
- package/dist/cjs/components/subtitle-player/SubtitlePlayer.js +3 -0
- package/dist/cjs/components/subtitle-player/index.d.ts +2 -0
- package/dist/cjs/components/txt-editor/TxtEditor.d.ts +5 -4
- package/dist/cjs/components/txt-editor/TxtEditor.js +32 -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.d.ts +10 -0
- package/dist/cjs/components/variable-proximity/index.js +1 -1
- package/dist/cjs/components/video-subtitle-player/VideoSubtitlePlayer.d.ts +23 -0
- package/dist/cjs/components/video-subtitle-player/VideoSubtitlePlayer.js +1 -0
- package/dist/cjs/components/video-subtitle-player/index.d.ts +3 -0
- package/dist/cjs/components/video-subtitle-player/useVideoSubtitleStore.d.ts +61 -0
- package/dist/cjs/components/video-subtitle-player/useVideoSubtitleStore.js +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/closest.js +1 -0
- package/dist/cjs/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/delegate.js +1 -0
- package/dist/cjs/node_modules/.pnpm/downloadjs@1.4.7/node_modules/downloadjs/download.js +3 -0
- package/dist/cjs/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +2 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/constant.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/defaultConfig.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/error.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/events.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/index.umd.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/instManager.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/en.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/i18n.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/zh-cn.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/mediaProxy.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/player.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/basePlugin.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/hooksDescriptor.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/plugin.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/pluginsManager.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/preset.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/resizeObserver.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/back.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/download.js +15 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitFull.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/loading.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pause.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIcon.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +8 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/play.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/playNext.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/replay.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestFull.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/rotate.js +12 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/seekicon.js +7 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconPlugin.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconTools.js +3 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionList.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionsIcon.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/thumbnail.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/controls/index.js +9 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/definition/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/download/index.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/dynamicBg/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/enter/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/error/index.js +6 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fpsDetect/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +2 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/index.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/gapJump/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/keyboard/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/loading/index.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/logger/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/index.js +13 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/index.js +19 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/touch.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pc/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pip/index.js +8 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/play/index.js +5 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playNext/index.js +7 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playbackRate/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/poster/index.js +2 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/index.js +7 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/innerList.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/miniProgress.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/index.js +11 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/prompt/index.js +3 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/replay/index.js +3 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/rotate/index.js +6 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/screenShot/index.js +6 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/start/index.js +4 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/stats/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/testspeed/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/index.js +6 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/timesegments.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/volume/index.js +11 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/presets/default.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/state.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/stateClassMap.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/database.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/debug.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/draggabilly.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/sniffer.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/util.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +1 -0
- package/dist/cjs/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/version.js +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/cjs/packages/subtitle/lib/src/json-converter.js +1 -0
- package/dist/cjs/packages/subtitle/lib/src/parser.js +5 -0
- package/dist/cjs/react-components.css +1 -1
- package/dist/es/_virtual/_commonjsHelpers.js +6 -0
- package/dist/es/_virtual/delegate.js +7 -0
- package/dist/es/_virtual/download.js +7 -0
- package/dist/es/_virtual/download2.js +4 -0
- package/dist/es/_virtual/index.js +8 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/components/shimmer-button/ShimmerButton.js +29 -62
- package/dist/es/components/shiny-button/ShinyButton.js +15 -17
- package/dist/es/components/sparkles-text/SparklesText.js +30 -29
- package/dist/es/components/subtitle-player/SubtitlePlayer.d.ts +51 -0
- package/dist/es/components/subtitle-player/SubtitlePlayer.js +301 -0
- package/dist/es/components/subtitle-player/index.d.ts +2 -0
- package/dist/es/components/txt-editor/TxtEditor.d.ts +5 -4
- package/dist/es/components/txt-editor/TxtEditor.js +105 -43
- package/dist/es/components/txt-reader/TxtReader.js +48 -55
- package/dist/es/components/txt-reader/index.module.css.js +6 -2
- package/dist/es/components/variable-proximity/index.d.ts +10 -0
- package/dist/es/components/variable-proximity/index.js +166 -94
- package/dist/es/components/video-subtitle-player/VideoSubtitlePlayer.d.ts +23 -0
- package/dist/es/components/video-subtitle-player/VideoSubtitlePlayer.js +125 -0
- package/dist/es/components/video-subtitle-player/index.d.ts +3 -0
- package/dist/es/components/video-subtitle-player/useVideoSubtitleStore.d.ts +61 -0
- package/dist/es/components/video-subtitle-player/useVideoSubtitleStore.js +57 -0
- package/dist/es/index.d.ts +2 -1
- package/dist/es/index.js +60 -56
- package/dist/es/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/closest.js +21 -0
- package/dist/es/node_modules/.pnpm/delegate@3.2.0/node_modules/delegate/src/delegate.js +29 -0
- package/dist/es/node_modules/.pnpm/downloadjs@1.4.7/node_modules/downloadjs/download.js +77 -0
- package/dist/es/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +111 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +197 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/constant.js +7 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/defaultConfig.js +87 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/error.js +64 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/events.js +67 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/index.umd.js +45 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/instManager.js +101 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/en.js +79 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/i18n.js +75 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/lang/zh-cn.js +79 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/mediaProxy.js +466 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/player.js +1240 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/basePlugin.js +207 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/hooksDescriptor.js +130 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/plugin.js +366 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/pluginsManager.js +204 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/preset.js +14 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugin/resizeObserver.js +81 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/back.js +10 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/download.js +20 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/exitFull.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/loading.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pause.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIcon.js +10 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +13 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/play.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/playNext.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/replay.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/requestFull.js +9 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/rotate.js +17 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/seekicon.js +12 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +10 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +10 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +10 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconPlugin.js +35 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/iconTools.js +12 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionList.js +79 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/optionsIcon.js +193 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/common/thumbnail.js +141 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/controls/index.js +171 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +105 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/definition/index.js +110 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/download/index.js +83 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/dynamicBg/index.js +232 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/enter/index.js +42 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/error/index.js +68 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fpsDetect/index.js +116 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +68 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/fullscreen/index.js +150 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/gapJump/index.js +96 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/keyboard/index.js +299 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/loading/index.js +46 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/logger/index.js +171 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/index.js +169 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +55 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/index.js +448 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/mobile/touch.js +138 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pc/index.js +122 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/pip/index.js +216 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/play/index.js +102 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playNext/index.js +78 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/playbackRate/index.js +100 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/poster/index.js +119 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/index.js +431 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/innerList.js +215 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progress/miniProgress.js +93 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +175 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/progressPreview/index.js +292 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/prompt/index.js +86 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/replay/index.js +92 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/rotate/index.js +106 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/screenShot/index.js +134 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/start/index.js +222 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/stats/index.js +152 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/testspeed/index.js +134 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/index.js +164 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/time/timesegments.js +146 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/volume/index.js +206 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +53 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/presets/default.js +61 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/state.js +13 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/stateClassMap.js +34 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/database.js +83 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/debug.js +34 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/draggabilly.js +271 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/sniffer.js +111 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/util.js +517 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +25 -0
- package/dist/es/node_modules/.pnpm/xgplayer@3.0.23_core-js@3.47.0/node_modules/xgplayer/es/version.js +4 -0
- 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 +19 -0
- 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 +14 -0
- package/dist/es/packages/subtitle/lib/src/json-converter.js +27 -0
- package/dist/es/packages/subtitle/lib/src/parser.js +56 -0
- package/dist/es/react-components.css +1 -1
- package/package.json +23 -21
- package/dist/cjs/components/qr-code/index.d.ts +0 -103
- package/dist/cjs/components/qr-code/index.js +0 -1
- package/dist/es/components/qr-code/index.d.ts +0 -103
- package/dist/es/components/qr-code/index.js +0 -49
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { inherits as k, createSuper as g, classCallCheck as _, defineProperty as u, assertThisInitialized as s, createClass as T } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import y from "../../utils/sniffer.js";
|
|
3
|
+
import { ENTER_PLAYER as P, LEAVE_PLAYER as E } from "../../events.js";
|
|
4
|
+
import b from "../../plugin/basePlugin.js";
|
|
5
|
+
import "../../../../../../../../_virtual/delegate.js";
|
|
6
|
+
import { runHooks as C } from "../../plugin/hooksDescriptor.js";
|
|
7
|
+
var f = {
|
|
8
|
+
mouseenter: "onMouseEnter",
|
|
9
|
+
mouseleave: "onMouseLeave",
|
|
10
|
+
mousemove: "onMouseMove"
|
|
11
|
+
}, d = ["videoClick", "videoDbClick"], B = /* @__PURE__ */ (function(h) {
|
|
12
|
+
k(c, h);
|
|
13
|
+
var v = g(c);
|
|
14
|
+
function c() {
|
|
15
|
+
var e;
|
|
16
|
+
_(this, c);
|
|
17
|
+
for (var l = arguments.length, r = new Array(l), n = 0; n < l; n++)
|
|
18
|
+
r[n] = arguments[n];
|
|
19
|
+
return e = v.call.apply(v, [this].concat(r)), u(s(e), "onMouseMove", function(i) {
|
|
20
|
+
var a = s(e), t = a.player, o = a.playerConfig;
|
|
21
|
+
t.isActive || (t.focus({
|
|
22
|
+
autoHide: !o.closeDelayBlur
|
|
23
|
+
}), !o.closeFocusVideoFocus && t.media.focus());
|
|
24
|
+
}), u(s(e), "onMouseEnter", function(i) {
|
|
25
|
+
var a = s(e), t = a.playerConfig, o = a.player;
|
|
26
|
+
!t.closeFocusVideoFocus && o.media.focus(), t.closeDelayBlur ? o.focus({
|
|
27
|
+
autoHide: !1
|
|
28
|
+
}) : o.focus(), e.emit(P);
|
|
29
|
+
}), u(s(e), "onMouseLeave", function(i) {
|
|
30
|
+
var a = e.playerConfig, t = a.closePlayerBlur, o = a.leavePlayerTime, p = a.closeDelayBlur;
|
|
31
|
+
!t && !p && (o ? e.player.focus({
|
|
32
|
+
autoHide: !0,
|
|
33
|
+
delay: o
|
|
34
|
+
}) : e.player.blur({
|
|
35
|
+
ignorePaused: !0
|
|
36
|
+
})), e.emit(E);
|
|
37
|
+
}), u(s(e), "onVideoClick", function(i) {
|
|
38
|
+
var a = s(e), t = a.player, o = a.playerConfig;
|
|
39
|
+
i.target && o.closeVideoClick || (i.target === t.root || i.target === t.media || i.target === t.innerContainer || i.target === t.media.__canvas) && (i.preventDefault(), o.closeVideoStopPropagation || i.stopPropagation(), e._clickCount++, e.clickTimer && (clearTimeout(e.clickTimer), e.clickTimer = null), e.clickTimer = setTimeout(function() {
|
|
40
|
+
e._clickCount && (e._clickCount--, C(s(e), d[0], function(p, m) {
|
|
41
|
+
e.switchPlayPause(m.e);
|
|
42
|
+
}, {
|
|
43
|
+
e: i,
|
|
44
|
+
paused: t.paused
|
|
45
|
+
}), clearTimeout(e.clickTimer), e.clickTimer = null);
|
|
46
|
+
}, 300));
|
|
47
|
+
}), u(s(e), "onVideoDblClick", function(i) {
|
|
48
|
+
var a = s(e), t = a.player, o = a.playerConfig;
|
|
49
|
+
if (!(o.closeVideoDblclick || !i.target || i.target !== t.media && i.target !== t.media.__canvas)) {
|
|
50
|
+
if (!o.closeVideoClick && e._clickCount < 2) {
|
|
51
|
+
e._clickCount = 0;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
e._clickCount = 0, e.clickTimer && (clearTimeout(e.clickTimer), e.clickTimer = null), i.preventDefault(), i.stopPropagation(), C(s(e), d[1], function(p, m) {
|
|
55
|
+
e.emitUserAction(m.e, "switch_fullscreen", {
|
|
56
|
+
props: "fullscreen",
|
|
57
|
+
from: t.fullscreen,
|
|
58
|
+
to: !t.fullscreen
|
|
59
|
+
}), t.fullscreen ? t.exitFullscreen() : t.getFullscreen();
|
|
60
|
+
}, {
|
|
61
|
+
e: i,
|
|
62
|
+
fullscreen: t.fullscreen
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}), e;
|
|
66
|
+
}
|
|
67
|
+
return T(c, [{
|
|
68
|
+
key: "afterCreate",
|
|
69
|
+
value: function() {
|
|
70
|
+
var l = this;
|
|
71
|
+
this._clickCount = 0, d.map(function(n) {
|
|
72
|
+
l.__hooks[n] = null;
|
|
73
|
+
});
|
|
74
|
+
var r = this.playerConfig.isMobileSimulateMode;
|
|
75
|
+
r === "mobile" || y.device === "mobile" && !y.os.isIpad || this.initEvents();
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "initEvents",
|
|
79
|
+
value: function() {
|
|
80
|
+
var l = this, r = this.player, n = r.media, i = r.root, a = this.playerConfig.enableContextmenu;
|
|
81
|
+
i && i.addEventListener("click", this.onVideoClick, !1), i && i.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(f).map(function(t) {
|
|
82
|
+
i.addEventListener(t, l[f[t]], !1);
|
|
83
|
+
}), !a && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
key: "switchPlayPause",
|
|
87
|
+
value: function(l) {
|
|
88
|
+
var r = this.player;
|
|
89
|
+
this.emitUserAction(l, "switch_play_pause", {
|
|
90
|
+
props: "paused",
|
|
91
|
+
from: r.paused,
|
|
92
|
+
to: !r.paused
|
|
93
|
+
}), r.ended ? r.duration !== 1 / 0 && r.duration > 0 && r.replay() : r.paused ? r.play() : r.pause();
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "onContextmenu",
|
|
97
|
+
value: function(l) {
|
|
98
|
+
l = l || window.event, l.preventDefault && l.preventDefault(), l.stopPropagation ? l.stopPropagation() : (l.returnValue = !1, l.cancelBubble = !0);
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "destroy",
|
|
102
|
+
value: function() {
|
|
103
|
+
var l = this, r = this.player, n = r.video, i = r.root;
|
|
104
|
+
this.clickTimer && clearTimeout(this.clickTimer), i.removeEventListener("click", this.onVideoClick, !1), i.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(f).map(function(a) {
|
|
105
|
+
i.removeEventListener(a, l[f[a]], !1);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}], [{
|
|
109
|
+
key: "pluginName",
|
|
110
|
+
get: function() {
|
|
111
|
+
return "pc";
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
key: "defaultConfig",
|
|
115
|
+
get: function() {
|
|
116
|
+
return {};
|
|
117
|
+
}
|
|
118
|
+
}]), c;
|
|
119
|
+
})(b);
|
|
120
|
+
export {
|
|
121
|
+
B as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { inherits as S, createSuper as x, classCallCheck as A, defineProperty as L, assertThisInitialized as M, createClass as N, get as g, getPrototypeOf as b, toConsumableArray as k } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import d from "../../utils/util.js";
|
|
3
|
+
import { COMPLETE as _, PIP_CHANGE as C } from "../../events.js";
|
|
4
|
+
import { POSITIONS as W } from "../../plugin/plugin.js";
|
|
5
|
+
import { xgIconTips as T } from "../common/iconTools.js";
|
|
6
|
+
import D from "../common/iconPlugin.js";
|
|
7
|
+
import O from "../assets/pipIcon.js";
|
|
8
|
+
import R from "../assets/pipIconExit.js";
|
|
9
|
+
var u = {
|
|
10
|
+
PIP: "picture-in-picture",
|
|
11
|
+
INLINE: "inline",
|
|
12
|
+
FULLSCREEN: "fullscreen"
|
|
13
|
+
}, K = /* @__PURE__ */ (function(w) {
|
|
14
|
+
S(a, w);
|
|
15
|
+
var m = x(a);
|
|
16
|
+
function a() {
|
|
17
|
+
var i;
|
|
18
|
+
A(this, a);
|
|
19
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
20
|
+
t[r] = arguments[r];
|
|
21
|
+
return i = m.call.apply(m, [this].concat(t)), L(M(i), "switchPIP", function(n) {
|
|
22
|
+
if (!i.isPIPAvailable())
|
|
23
|
+
return !1;
|
|
24
|
+
n.stopPropagation && n.stopPropagation(), i.isPip ? (i.exitPIP(), i.emitUserAction(n, "change_pip", {
|
|
25
|
+
props: "pip",
|
|
26
|
+
from: !0,
|
|
27
|
+
to: !1
|
|
28
|
+
}), i.setAttr("data-state", "normal")) : i.player.media.readyState === 4 && (i.requestPIP(), i.emitUserAction(n, "change_pip", {
|
|
29
|
+
props: "pip",
|
|
30
|
+
from: !1,
|
|
31
|
+
to: !0
|
|
32
|
+
}), i.setAttr("data-state", "pip"));
|
|
33
|
+
}), i;
|
|
34
|
+
}
|
|
35
|
+
return N(a, [{
|
|
36
|
+
key: "beforeCreate",
|
|
37
|
+
value: function(e) {
|
|
38
|
+
typeof e.player.config.pip == "boolean" && (e.config.showIcon = e.player.config.pip);
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
key: "afterCreate",
|
|
42
|
+
value: function() {
|
|
43
|
+
var e = this;
|
|
44
|
+
this.isPIPAvailable() && (g(b(a.prototype), "afterCreate", this).call(this), this.pMode = u.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(_, function() {
|
|
45
|
+
e.config.showIcon && (d.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "registerIcons",
|
|
50
|
+
value: function() {
|
|
51
|
+
return {
|
|
52
|
+
pipIcon: {
|
|
53
|
+
icon: O,
|
|
54
|
+
class: "xg-get-pip"
|
|
55
|
+
},
|
|
56
|
+
pipIconExit: {
|
|
57
|
+
icon: R,
|
|
58
|
+
class: "xg-exit-pip"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: "initIcons",
|
|
64
|
+
value: function() {
|
|
65
|
+
var e = this.icons;
|
|
66
|
+
this.appendChild(".xgplayer-icon", e.pipIcon), this.appendChild(".xgplayer-icon", e.pipIconExit);
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
key: "initPipEvents",
|
|
70
|
+
value: function() {
|
|
71
|
+
var e = this, t = this.player;
|
|
72
|
+
this.leavePIPCallback = function() {
|
|
73
|
+
var r = t.paused;
|
|
74
|
+
d.setTimeout(e, function() {
|
|
75
|
+
!r && t.mediaPlay();
|
|
76
|
+
}, 0), !r && t.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, t.emit(C, !1);
|
|
77
|
+
}, this.enterPIPCallback = function(r) {
|
|
78
|
+
t.emit(C, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
79
|
+
}, this.onWebkitpresentationmodechanged = function(r) {
|
|
80
|
+
var n = t.media.webkitPresentationMode;
|
|
81
|
+
e.pMode === u.FULLSCREEN && n !== u.FULLSCREEN && t.onFullscreenChange(null, !1), e.pMode = n, n === u.PIP ? e.enterPIPCallback(r) : n === u.INLINE && e.leavePIPCallback(r);
|
|
82
|
+
}, t.media && (t.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), t.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), a.checkWebkitSetPresentationMode(t.media) && t.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
key: "copyStyleIntoPiPWindow",
|
|
86
|
+
value: function(e) {
|
|
87
|
+
var t = k(document.styleSheets).map(function(n) {
|
|
88
|
+
try {
|
|
89
|
+
return k(n.cssRules).map(function(s) {
|
|
90
|
+
return s.cssText;
|
|
91
|
+
}).join("");
|
|
92
|
+
} catch {
|
|
93
|
+
var o = document.createElement("link");
|
|
94
|
+
o.rel = "stylesheet", o.type = n.type, o.media = n.media, o.href = n.href, e.document.head.appendChild(o);
|
|
95
|
+
}
|
|
96
|
+
return "";
|
|
97
|
+
}).filter(Boolean).join(`
|
|
98
|
+
`), r = document.createElement("style");
|
|
99
|
+
r.textContent = t, e.document.head.appendChild(r);
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
key: "requestPIP",
|
|
103
|
+
value: function() {
|
|
104
|
+
var e = this, t = this.player, r = this.playerConfig, n = this.config;
|
|
105
|
+
if (!(!this.isPIPAvailable() || this.isPip))
|
|
106
|
+
try {
|
|
107
|
+
var o = r.poster;
|
|
108
|
+
if (o && (t.media.poster = d.typeOf(o) === "String" ? o : o.poster), n.preferDocument && this.isDocPIPAvailable()) {
|
|
109
|
+
var s = {};
|
|
110
|
+
if (n.width && n.height)
|
|
111
|
+
s.width = n.width, s.height = n.height;
|
|
112
|
+
else {
|
|
113
|
+
var v = t.root.getBoundingClientRect();
|
|
114
|
+
s.width = v.width, s.height = v.height;
|
|
115
|
+
}
|
|
116
|
+
documentPictureInPicture.requestWindow(s).then(function(l) {
|
|
117
|
+
var E = n.docPiPNode, p = n.docPiPStyle;
|
|
118
|
+
e.enterPIPCallback();
|
|
119
|
+
var c = E || t.root, P = c.parentElement, I = c.previousSibling, y = c.nextSibling;
|
|
120
|
+
e.copyStyleIntoPiPWindow(l);
|
|
121
|
+
var f = document.createElement("style");
|
|
122
|
+
if (f.append("body{padding:0; margin:0;}"), p) {
|
|
123
|
+
var h = "";
|
|
124
|
+
typeof p == "string" ? h = p : typeof p == "function" && (h = p.call(n)), h && f.append(h);
|
|
125
|
+
} else c === t.root && f.append(`
|
|
126
|
+
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
127
|
+
`);
|
|
128
|
+
l.document.head.append(f), l.document.body.append(c), l.addEventListener("pagehide", function(q) {
|
|
129
|
+
P && (y ? P.insertBefore(c, y) : I ? P.insertBefore(c, I.nextSibling) : P.appendChild(c)), e.leavePIPCallback();
|
|
130
|
+
}, {
|
|
131
|
+
once: !0
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
} else a.checkWebkitSetPresentationMode(t.media) ? t.media.webkitSetPresentationMode("picture-in-picture") : t.media.requestPictureInPicture();
|
|
135
|
+
return !0;
|
|
136
|
+
} catch (l) {
|
|
137
|
+
return console.error("requestPiP", l), !1;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "exitPIP",
|
|
142
|
+
value: function() {
|
|
143
|
+
var e = this.player;
|
|
144
|
+
try {
|
|
145
|
+
if (this.isPIPAvailable() && this.isPip) {
|
|
146
|
+
var t;
|
|
147
|
+
this.isDocPIPAvailable() && (t = documentPictureInPicture) !== null && t !== void 0 && t.window ? documentPictureInPicture.window.close() : a.checkWebkitSetPresentationMode(e.media) ? e.media.webkitSetPresentationMode("inline") : document.exitPictureInPicture();
|
|
148
|
+
}
|
|
149
|
+
return !0;
|
|
150
|
+
} catch (r) {
|
|
151
|
+
return console.error("exitPIP", r), !1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "isPip",
|
|
156
|
+
get: function() {
|
|
157
|
+
var e, t = this.player;
|
|
158
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === t.media || t.media.webkitPresentationMode === u.PIP;
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
key: "isPIPAvailable",
|
|
162
|
+
value: function() {
|
|
163
|
+
var e = this.player.media, t = d.typeOf(document.pictureInPictureEnabled) === "Boolean" ? document.pictureInPictureEnabled : !1;
|
|
164
|
+
return t && (d.typeOf(e.disablePictureInPicture) === "Boolean" && !e.disablePictureInPicture || e.webkitSupportsPresentationMode && d.typeOf(e.webkitSetPresentationMode) === "Function") || this.isDocPIPAvailable();
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "isDocPIPAvailable",
|
|
168
|
+
value: function() {
|
|
169
|
+
return "documentPictureInPicture" in window && /^(https|file)/.test(location.protocol);
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "destroy",
|
|
173
|
+
value: function() {
|
|
174
|
+
g(b(a.prototype), "destroy", this).call(this);
|
|
175
|
+
var e = this.player;
|
|
176
|
+
e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), a.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "render",
|
|
180
|
+
value: function() {
|
|
181
|
+
if (!(!this.config.showIcon || !this.isPIPAvailable()))
|
|
182
|
+
return `<xg-icon class="xgplayer-pip">
|
|
183
|
+
<div class="xgplayer-icon xg-icon-disable">
|
|
184
|
+
</div>
|
|
185
|
+
`.concat(T(this, "PIP", this.playerConfig.isHideTips), `
|
|
186
|
+
</xg-icon>`);
|
|
187
|
+
}
|
|
188
|
+
}], [{
|
|
189
|
+
key: "pluginName",
|
|
190
|
+
get: function() {
|
|
191
|
+
return "pip";
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
key: "defaultConfig",
|
|
195
|
+
get: function() {
|
|
196
|
+
return {
|
|
197
|
+
position: W.CONTROLS_RIGHT,
|
|
198
|
+
index: 6,
|
|
199
|
+
showIcon: !1,
|
|
200
|
+
preferDocument: !1,
|
|
201
|
+
width: void 0,
|
|
202
|
+
height: void 0,
|
|
203
|
+
docPiPNode: void 0,
|
|
204
|
+
docPiPStyle: void 0
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}, {
|
|
208
|
+
key: "checkWebkitSetPresentationMode",
|
|
209
|
+
value: function(e) {
|
|
210
|
+
return typeof e.webkitSetPresentationMode == "function";
|
|
211
|
+
}
|
|
212
|
+
}]), a;
|
|
213
|
+
})(D);
|
|
214
|
+
export {
|
|
215
|
+
K as default
|
|
216
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { inherits as h, createSuper as y, classCallCheck as d, defineProperty as g, assertThisInitialized as l, createClass as m, get as c, getPrototypeOf as p } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import { PLAY as v, PAUSE as P, ERROR as I, EMPTIED as C } from "../../events.js";
|
|
3
|
+
import { POSITIONS as x } from "../../plugin/plugin.js";
|
|
4
|
+
import { xgIconTips as T } from "../common/iconTools.js";
|
|
5
|
+
import _ from "../common/iconPlugin.js";
|
|
6
|
+
import k from "../assets/play.js";
|
|
7
|
+
import S from "../assets/pause.js";
|
|
8
|
+
var z = /* @__PURE__ */ (function(u) {
|
|
9
|
+
h(a, u);
|
|
10
|
+
var o = y(a);
|
|
11
|
+
function a() {
|
|
12
|
+
var e;
|
|
13
|
+
d(this, a);
|
|
14
|
+
for (var t = arguments.length, s = new Array(t), i = 0; i < t; i++)
|
|
15
|
+
s[i] = arguments[i];
|
|
16
|
+
return e = o.call.apply(o, [this].concat(s)), g(l(e), "btnClick", function(r) {
|
|
17
|
+
r.preventDefault(), r.stopPropagation();
|
|
18
|
+
var f = l(e), n = f.player;
|
|
19
|
+
return e.emitUserAction(r, "switch_play_pause", {
|
|
20
|
+
prop: "paused",
|
|
21
|
+
from: n.paused,
|
|
22
|
+
to: !n.paused
|
|
23
|
+
}), n.ended ? n.replay() : n.paused ? (n.play(), e.animate(!1)) : (n.pause(), e.animate(!0)), !1;
|
|
24
|
+
}), e;
|
|
25
|
+
}
|
|
26
|
+
return m(a, [{
|
|
27
|
+
key: "afterCreate",
|
|
28
|
+
value: function() {
|
|
29
|
+
c(p(a.prototype), "afterCreate", this).call(this);
|
|
30
|
+
var t = this.config;
|
|
31
|
+
t.disable || (this.initIcons(), this.bind(["touchend", "click"], this.btnClick), this.listenEvents(), this.animate(!0));
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
key: "listenEvents",
|
|
35
|
+
value: function() {
|
|
36
|
+
var t = this, s = this.player;
|
|
37
|
+
this.on([v, P, I, C], function() {
|
|
38
|
+
t.animate(s.paused);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "registerIcons",
|
|
43
|
+
value: function() {
|
|
44
|
+
return {
|
|
45
|
+
play: {
|
|
46
|
+
icon: k,
|
|
47
|
+
class: "xg-icon-play"
|
|
48
|
+
},
|
|
49
|
+
pause: {
|
|
50
|
+
icon: S,
|
|
51
|
+
class: "xg-icon-pause"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: "initIcons",
|
|
57
|
+
value: function() {
|
|
58
|
+
var t = this.icons;
|
|
59
|
+
this.appendChild(".xgplayer-icon", t.play), this.appendChild(".xgplayer-icon", t.pause);
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
key: "animate",
|
|
63
|
+
value: function(t) {
|
|
64
|
+
if (this.player) {
|
|
65
|
+
var s = this.i18nKeys, i = this.find(".xg-tips");
|
|
66
|
+
t ? (this.setAttr("data-state", "pause"), i && this.changeLangTextKey(i, s.PLAY_TIPS)) : (this.setAttr("data-state", "play"), i && this.changeLangTextKey(i, s.PAUSE_TIPS));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "destroy",
|
|
71
|
+
value: function() {
|
|
72
|
+
c(p(a.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "render",
|
|
76
|
+
value: function() {
|
|
77
|
+
if (!this.config.disable)
|
|
78
|
+
return `<xg-icon class="xgplayer-play">
|
|
79
|
+
<div class="xgplayer-icon">
|
|
80
|
+
</div>
|
|
81
|
+
`.concat(T(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
|
|
82
|
+
</xg-icon>`);
|
|
83
|
+
}
|
|
84
|
+
}], [{
|
|
85
|
+
key: "pluginName",
|
|
86
|
+
get: function() {
|
|
87
|
+
return "play";
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
key: "defaultConfig",
|
|
91
|
+
get: function() {
|
|
92
|
+
return {
|
|
93
|
+
position: x.CONTROLS_LEFT,
|
|
94
|
+
index: 0,
|
|
95
|
+
disable: !1
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}]), a;
|
|
99
|
+
})(_);
|
|
100
|
+
export {
|
|
101
|
+
z as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { inherits as u, createSuper as h, classCallCheck as f, defineProperty as p, assertThisInitialized as s, createClass as d } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import g from "../../utils/sniffer.js";
|
|
3
|
+
import { PLAYNEXT as a } from "../../events.js";
|
|
4
|
+
import y, { POSITIONS as x } from "../../plugin/plugin.js";
|
|
5
|
+
import { xgIconTips as v } from "../common/iconTools.js";
|
|
6
|
+
import m from "../assets/playNext.js";
|
|
7
|
+
var _ = /* @__PURE__ */ (function(l) {
|
|
8
|
+
u(n, l);
|
|
9
|
+
var c = h(n);
|
|
10
|
+
function n(t) {
|
|
11
|
+
var e;
|
|
12
|
+
return f(this, n), e = c.call(this, t), p(s(e), "playNext", function(i) {
|
|
13
|
+
var o = s(e), r = o.player;
|
|
14
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), r.emit(a, e.idx + 1)) : (e.nextHandler(), r.emit(a));
|
|
15
|
+
}), e.idx = -1, e;
|
|
16
|
+
}
|
|
17
|
+
return d(n, [{
|
|
18
|
+
key: "afterCreate",
|
|
19
|
+
value: function() {
|
|
20
|
+
!this.config.urlList || this.config.urlList.length === 0 || (this.appendChild(".xgplayer-icon", this.icons.playNext), this.initEvents());
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
key: "registerIcons",
|
|
24
|
+
value: function() {
|
|
25
|
+
return {
|
|
26
|
+
playNext: m
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
key: "initEvents",
|
|
31
|
+
value: function() {
|
|
32
|
+
this.nextHandler = this.hook("nextClick", this.changeSrc);
|
|
33
|
+
var e = g.device === "mobile" ? "touchend" : "click";
|
|
34
|
+
this.bind(e, this.playNext), this.show();
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "changeSrc",
|
|
38
|
+
value: function(e) {
|
|
39
|
+
var i = this.player;
|
|
40
|
+
e && (i.pause(), i.currentTime = 0, i.switchURL ? i.switchURL(e) : i.src = e, i.config.url = e, i.play());
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
key: "destroy",
|
|
44
|
+
value: function() {
|
|
45
|
+
this.unbind(["touchend", "click"], this.playNext);
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
key: "render",
|
|
49
|
+
value: function() {
|
|
50
|
+
if (!(!this.config.urlList || this.config.urlList.length === 0))
|
|
51
|
+
return `
|
|
52
|
+
<xg-icon class="xgplayer-playnext">
|
|
53
|
+
<div class="xgplayer-icon">
|
|
54
|
+
</div>
|
|
55
|
+
`.concat(v(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
|
|
56
|
+
</xg-icon>
|
|
57
|
+
`);
|
|
58
|
+
}
|
|
59
|
+
}], [{
|
|
60
|
+
key: "pluginName",
|
|
61
|
+
get: function() {
|
|
62
|
+
return "playNext";
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "defaultConfig",
|
|
66
|
+
get: function() {
|
|
67
|
+
return {
|
|
68
|
+
position: x.CONTROLS_LEFT,
|
|
69
|
+
index: 1,
|
|
70
|
+
url: null,
|
|
71
|
+
urlList: []
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}]), n;
|
|
75
|
+
})(y);
|
|
76
|
+
export {
|
|
77
|
+
_ as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { inherits as g, createSuper as k, classCallCheck as v, createClass as d, objectSpread2 as u, get as n, getPrototypeOf as c } from "../../_virtual/_rollupPluginBabelHelpers.js";
|
|
2
|
+
import { RATE_CHANGE as x } from "../../events.js";
|
|
3
|
+
import { POSITIONS as b } from "../../plugin/plugin.js";
|
|
4
|
+
import f from "../common/optionsIcon.js";
|
|
5
|
+
var _ = /* @__PURE__ */ (function(h) {
|
|
6
|
+
g(a, h);
|
|
7
|
+
var p = k(a);
|
|
8
|
+
function a(r) {
|
|
9
|
+
var t;
|
|
10
|
+
return v(this, a), t = p.call(this, r), t.curRate = 1, t;
|
|
11
|
+
}
|
|
12
|
+
return d(a, [{
|
|
13
|
+
key: "beforeCreate",
|
|
14
|
+
value: function(t) {
|
|
15
|
+
var i = t.player.config.playbackRate, s = i ? Array.isArray(i) ? i : t.config.list : [];
|
|
16
|
+
Array.isArray(s) && (t.config.list = s.map(function(e) {
|
|
17
|
+
return typeof e == "number" ? e = {
|
|
18
|
+
rate: e,
|
|
19
|
+
text: "".concat(e, "x")
|
|
20
|
+
} : !e.text && e.rate && (e.text = "".concat(e.rate, "x")), e;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
key: "afterCreate",
|
|
25
|
+
value: function() {
|
|
26
|
+
var t = this;
|
|
27
|
+
n(c(a.prototype), "afterCreate", this).call(this), this.on(x, function() {
|
|
28
|
+
t.curValue !== t.player.playbackRate && t.renderItemList();
|
|
29
|
+
}), this.renderItemList();
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
key: "show",
|
|
33
|
+
value: function(t) {
|
|
34
|
+
!this.config.list || this.config.list.length === 0 || n(c(a.prototype), "show", this).call(this);
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "onItemClick",
|
|
38
|
+
value: function(t, i) {
|
|
39
|
+
n(c(a.prototype), "onItemClick", this).call(this, t, i);
|
|
40
|
+
var s = t.delegateTarget, e = Number(s.getAttribute("rate"));
|
|
41
|
+
if (!e || e === this.curValue)
|
|
42
|
+
return !1;
|
|
43
|
+
var o = {
|
|
44
|
+
playbackRate: {
|
|
45
|
+
from: this.player.playbackRate,
|
|
46
|
+
to: e
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
this.emitUserAction(t, "change_rate", {
|
|
50
|
+
props: o
|
|
51
|
+
}), this.curValue = e, this.player.playbackRate = e;
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
key: "renderItemList",
|
|
55
|
+
value: function() {
|
|
56
|
+
var t = this, i = this.player.playbackRate || 1;
|
|
57
|
+
this.curValue = i;
|
|
58
|
+
var s = -1, e = this.config.list.map(function(o, y) {
|
|
59
|
+
var l = {
|
|
60
|
+
rate: o.rate
|
|
61
|
+
};
|
|
62
|
+
return l.rate === i && (l.selected = !0, s = y), l.showText = t.getTextByLang(o), l;
|
|
63
|
+
});
|
|
64
|
+
n(c(a.prototype), "renderItemList", this).call(this, e, s);
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: "changeCurrentText",
|
|
68
|
+
value: function() {
|
|
69
|
+
if (!this.isIcons) {
|
|
70
|
+
var t = this.config.list, i = this.curIndex < t.length ? this.curIndex : 0, s = t[i], e = "";
|
|
71
|
+
!s || this.curIndex < 0 ? e = "".concat(this.player.playbackRate, "x") : e = this.getTextByLang(s, "iconText"), this.find(".icon-text").innerHTML = e;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "destroy",
|
|
76
|
+
value: function() {
|
|
77
|
+
n(c(a.prototype), "destroy", this).call(this);
|
|
78
|
+
}
|
|
79
|
+
}], [{
|
|
80
|
+
key: "pluginName",
|
|
81
|
+
get: function() {
|
|
82
|
+
return "playbackRate";
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
key: "defaultConfig",
|
|
86
|
+
get: function() {
|
|
87
|
+
return u(u({}, f.defaultConfig), {}, {
|
|
88
|
+
position: b.CONTROLS_RIGHT,
|
|
89
|
+
index: 4,
|
|
90
|
+
list: [2, 1.5, 1, 0.75, 0.5],
|
|
91
|
+
className: "xgplayer-playbackrate",
|
|
92
|
+
isShowIcon: !0,
|
|
93
|
+
hidePortrait: !1
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}]), a;
|
|
97
|
+
})(f);
|
|
98
|
+
export {
|
|
99
|
+
_ as default
|
|
100
|
+
};
|