@quicktvui/ai 1.0.9 → 1.1.1
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/README.md +31 -0
- package/USAGE.md +22 -7
- package/package.json +1 -1
- package/rules/.clinerules +1 -0
- package/rules/.cursorrules +1 -0
- package/rules/.docs/zh-CN/guide/ai/ai-assistant.md +16 -6
- package/rules/.github/copilot-instructions.md +1 -0
- package/rules/.source/hellotv/PROJECT-README.md +52 -0
- package/rules/.source/hellotv/app.d.ts +11 -0
- package/rules/.source/hellotv/package.json +146 -0
- package/rules/.source/hellotv/scripts/build-apk.ts +12 -0
- package/rules/.source/hellotv/scripts/build.ts +35 -0
- package/rules/.source/hellotv/scripts/dev.ts +12 -0
- package/rules/.source/hellotv/scripts/pack.ts +24 -0
- package/rules/.source/hellotv/scripts/process.ts +37 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.android.ts +187 -0
- package/rules/.source/hellotv/scripts/quicktvui-webpack.dev.ts +147 -0
- package/rules/.source/hellotv/scripts/webpack-watch.ts +24 -0
- package/rules/.source/hellotv/src/App.vue +192 -0
- package/rules/.source/hellotv/src/api/my/index.ts +198 -0
- package/rules/.source/hellotv/src/api/user/impl-user.ts +52 -0
- package/rules/.source/hellotv/src/api/user/qr-code-mock.ts +2 -0
- package/rules/.source/hellotv/src/api/user/request-url.ts +11 -0
- package/rules/.source/hellotv/src/api/user/user-manager.ts +258 -0
- package/rules/.source/hellotv/src/app.scss +8 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_btn_play.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_setting_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_menu_xuanji_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/component-media/ic_media_ok_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_full_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_info_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_introduction_bg.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_list_item_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_pause.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_placeholder.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_media_player_play.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/detail/skeleton.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_filter_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/filter/ic_left_selected.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_delete.png +0 -0
- package/rules/.source/hellotv/src/assets/history/ic_empty.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_history_item.png +0 -0
- package/rules/.source/hellotv/src/assets/home/bg_shadow.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_play_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_4k_subtitle_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_arrow_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_corner.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_exit_header.png +0 -0
- package/rules/.source/hellotv/src/assets/home/ic_play.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/bg-play-info.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-left.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-arrow-right.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-back.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-change.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip-tips.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-corner-vip.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-key.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-loading-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext-arrow.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu-ext.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-menu.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-mine.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-network-error.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-ok.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing2.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-playing3.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic-service.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast.png +0 -0
- package/rules/.source/hellotv/src/assets/live/ic_live_broadcast_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_collect_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_order_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_focus.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_record_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_user.png +0 -0
- package/rules/.source/hellotv/src/assets/my/ic_vip_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_back_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_dark.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_clear_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/search/ic_search.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_logo.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_search_normal.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_focused.png +0 -0
- package/rules/.source/hellotv/src/assets/top-view/ic_top_user_normal.png +0 -0
- package/rules/.source/hellotv/src/components/bg-animation.scss +14 -0
- package/rules/.source/hellotv/src/components/bg-animation.vue +176 -0
- package/rules/.source/hellotv/src/components/btn-pack-view.vue +172 -0
- package/rules/.source/hellotv/src/components/btn-pack.scss +53 -0
- package/rules/.source/hellotv/src/components/grid-item-horizontal.vue +203 -0
- package/rules/.source/hellotv/src/components/grid-item-vertical.vue +201 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-config.ts +4 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-control-adapter.ts +378 -0
- package/rules/.source/hellotv/src/components/media/build-data/media-imp.ts +44 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-component.vue +50 -0
- package/rules/.source/hellotv/src/components/media/view/media-loading-view.vue +154 -0
- package/rules/.source/hellotv/src/components/media/view/media-manager-view.vue +931 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-item.vue +42 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-detail-view.vue +109 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-icon-item.vue +43 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-text-item.vue +27 -0
- package/rules/.source/hellotv/src/components/media/view/media-menu-view.vue +88 -0
- package/rules/.source/hellotv/src/components/media/view/media-player-view.vue +408 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-loading.scss +51 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-manager.scss +79 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-menu.scss +114 -0
- package/rules/.source/hellotv/src/components/media/view/scss/media-player.scss +6 -0
- package/rules/.source/hellotv/src/components/qt-tabs-component.ts +268 -0
- package/rules/.source/hellotv/src/components/qt-ul-component.ts +792 -0
- package/rules/.source/hellotv/src/components/top-view.scss +38 -0
- package/rules/.source/hellotv/src/components/top-view.vue +114 -0
- package/rules/.source/hellotv/src/config/README.md +22 -0
- package/rules/.source/hellotv/src/config/build-config.ts +22 -0
- package/rules/.source/hellotv/src/config/private-theme-config.ts +21 -0
- package/rules/.source/hellotv/src/config/public-config.scss +16 -0
- package/rules/.source/hellotv/src/config/test.scss +45 -0
- package/rules/.source/hellotv/src/config/theme-config.ts +51 -0
- package/rules/.source/hellotv/src/main.ts +45 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/config.ts +37 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/index.ts +849 -0
- package/rules/.source/hellotv/src/pages/activity/adapter/interface.ts +173 -0
- package/rules/.source/hellotv/src/pages/activity/api/index.ts +36 -0
- package/rules/.source/hellotv/src/pages/activity/api/interface.ts +11 -0
- package/rules/.source/hellotv/src/pages/activity/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/focus-change-img-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/inner-out-title-item.vue +59 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/no-title-item.vue +45 -0
- package/rules/.source/hellotv/src/pages/activity/components/item/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/activity/index.vue +219 -0
- package/rules/.source/hellotv/src/pages/activity/scss/index.scss +46 -0
- package/rules/.source/hellotv/src/pages/activity/scss/item.scss +69 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/index.ts +317 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/interface.ts +150 -0
- package/rules/.source/hellotv/src/pages/detail/adapter/media-player.ts +378 -0
- package/rules/.source/hellotv/src/pages/detail/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-definition.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-list-item.vue +108 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-media-series.vue +349 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-order.vue +194 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/collapse/media-collapse-speed.vue +192 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/index.vue +404 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-small-view.vue +382 -0
- package/rules/.source/hellotv/src/pages/detail/components/media-player/media-player-view.vue +1099 -0
- package/rules/.source/hellotv/src/pages/detail/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/basic-section.vue +218 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/config.ts +6 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/header-section.vue +15 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/button-menu.vue +259 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-introduction.vue +238 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/media-series.vue +308 -0
- package/rules/.source/hellotv/src/pages/detail/components/section/item/player-placeholder.vue +88 -0
- package/rules/.source/hellotv/src/pages/detail/index.vue +571 -0
- package/rules/.source/hellotv/src/pages/detail/scss/index.scss +22 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-loading.vue +78 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-menu-view.vue +803 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/components/media-player/full-player-view.vue +219 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/index.vue +101 -0
- package/rules/.source/hellotv/src/pages/detail-full-player/scss/full-player-view.scss +6 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/index.ts +0 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/adapter/interface.ts +133 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/index.ts +77 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-info.vue +263 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-player.vue +42 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/media-series-section.vue +26 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/components/recommend-item.vue +167 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/index.vue +163 -0
- package/rules/.source/hellotv/src/pages/detail-full-screen/scss/index.scss +41 -0
- package/rules/.source/hellotv/src/pages/device-info/index.vue +106 -0
- package/rules/.source/hellotv/src/pages/device-info/scss/device-info.scss +49 -0
- package/rules/.source/hellotv/src/pages/filter/README.md +66 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/index.ts +180 -0
- package/rules/.source/hellotv/src/pages/filter/adapter/interface.ts +111 -0
- package/rules/.source/hellotv/src/pages/filter/api/index.ts +38 -0
- package/rules/.source/hellotv/src/pages/filter/api/interface.ts +44 -0
- package/rules/.source/hellotv/src/pages/filter/api/request-url.ts +8 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/index.vue +469 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item-record.vue +16 -0
- package/rules/.source/hellotv/src/pages/filter/components/content/list-item.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/expand/index.vue +83 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/index.vue +81 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter-title.vue +78 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-filter.vue +68 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-line.vue +11 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-text.vue +43 -0
- package/rules/.source/hellotv/src/pages/filter/components/sidebar/list-item-title.vue +14 -0
- package/rules/.source/hellotv/src/pages/filter/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/filter/expand-sidebar-contents.vue +203 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content-list-item.scss +42 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-content.scss +60 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-expand.scss +30 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter-sidebar.scss +45 -0
- package/rules/.source/hellotv/src/pages/filter/scss/filter.scss +21 -0
- package/rules/.source/hellotv/src/pages/filter/sidebar-contents.vue +145 -0
- package/rules/.source/hellotv/src/pages/filter/single-contents.vue +61 -0
- package/rules/.source/hellotv/src/pages/history/adapter/index.ts +51 -0
- package/rules/.source/hellotv/src/pages/history/adapter/interface.ts +22 -0
- package/rules/.source/hellotv/src/pages/history/api/index.ts +54 -0
- package/rules/.source/hellotv/src/pages/history/api/interface.ts +41 -0
- package/rules/.source/hellotv/src/pages/history/api/request-url.ts +10 -0
- package/rules/.source/hellotv/src/pages/history/components/confirm-dialog.vue +155 -0
- package/rules/.source/hellotv/src/pages/history/config.ts +8 -0
- package/rules/.source/hellotv/src/pages/history/index-raw.vue +540 -0
- package/rules/.source/hellotv/src/pages/history/index.vue +431 -0
- package/rules/.source/hellotv/src/pages/history/mock.ts +32 -0
- package/rules/.source/hellotv/src/pages/history/scss/history-raw.scss +181 -0
- package/rules/.source/hellotv/src/pages/history/scss/history.scss +148 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-adapter.ts +20 -0
- package/rules/.source/hellotv/src/pages/home/adapter/exit/home-exit-imp.ts +13 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/create-home-player-interceptor.ts +50 -0
- package/rules/.source/hellotv/src/pages/home/adapter/media/home-media-imp.ts +74 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-adapter.ts +151 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-config.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-imp.ts +53 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-bar/tab-bar-item-type.ts +6 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-adapter.ts +1304 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-config.ts +30 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-imp.ts +173 -0
- package/rules/.source/hellotv/src/pages/home/adapter/tab-content/tab-content-item-type.ts +17 -0
- package/rules/.source/hellotv/src/pages/home/api/index.ts +157 -0
- package/rules/.source/hellotv/src/pages/home/api/interface.ts +56 -0
- package/rules/.source/hellotv/src/pages/home/api/request-url.ts +22 -0
- package/rules/.source/hellotv/src/pages/home/components/exit-dialog.vue +148 -0
- package/rules/.source/hellotv/src/pages/home/components/media/bg-player.vue +440 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-img-item.vue +39 -0
- package/rules/.source/hellotv/src/pages/home/components/nav-bar/bar-text-item.vue +100 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-img.vue +54 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/bg-player-cell-list-item-text.vue +67 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-list-player-item.vue +74 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/cell-player-item.vue +40 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/focus-change-img-item.vue +41 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/history-item.vue +362 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/inner-out-title-item.vue +60 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/no-title-item.vue +46 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/placeholder-item.vue +25 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/short-video/short-video-section.vue +70 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/small-4k/small-four-section.vue +76 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section-item.vue +90 -0
- package/rules/.source/hellotv/src/pages/home/components/tab-content/world-4k/world-four-section.vue +57 -0
- package/rules/.source/hellotv/src/pages/home/components/waterfall-tabs.vue +1307 -0
- package/rules/.source/hellotv/src/pages/home/index.vue +117 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-img-item.scss +11 -0
- package/rules/.source/hellotv/src/pages/home/scss/bar-text-item.scss +80 -0
- package/rules/.source/hellotv/src/pages/home/scss/base.scss +8 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player-cell-list-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/bg-player.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/cell-player-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/exit-dialog.scss +89 -0
- package/rules/.source/hellotv/src/pages/home/scss/focus-change-img-item.scss +12 -0
- package/rules/.source/hellotv/src/pages/home/scss/home.scss +32 -0
- package/rules/.source/hellotv/src/pages/home/scss/inner-out-title-item.scss +24 -0
- package/rules/.source/hellotv/src/pages/home/scss/no-title-item.scss +15 -0
- package/rules/.source/hellotv/src/pages/home/scss/placeholder-item.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/short-video-section.scss +59 -0
- package/rules/.source/hellotv/src/pages/home/scss/small-four-section.scss +14 -0
- package/rules/.source/hellotv/src/pages/home/scss/waterfall-tabs.scss +50 -0
- package/rules/.source/hellotv/src/pages/home/scss/world-four-section.scss +106 -0
- package/rules/.source/hellotv/src/pages/introduction/index.vue +227 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-icon-text.vue +35 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-img.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/first-list-item-text.vue +16 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/index.vue +266 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/second-list-item.vue +80 -0
- package/rules/.source/hellotv/src/pages/live/components/menu/third-list-item.vue +68 -0
- package/rules/.source/hellotv/src/pages/live/components/player/index.vue +168 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-error.vue +48 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-loading.vue +50 -0
- package/rules/.source/hellotv/src/pages/live/components/player/player-tips.vue +125 -0
- package/rules/.source/hellotv/src/pages/live/components/player/tips-icon-text.vue +27 -0
- package/rules/.source/hellotv/src/pages/live/css/menu.css +109 -0
- package/rules/.source/hellotv/src/pages/live/css/player.css +56 -0
- package/rules/.source/hellotv/src/pages/live/index.vue +128 -0
- package/rules/.source/hellotv/src/pages/live/mock/index.ts +263 -0
- package/rules/.source/hellotv/src/pages/live/types/index.ts +42 -0
- package/rules/.source/hellotv/src/pages/login/index.vue +116 -0
- package/rules/.source/hellotv/src/pages/login/scss/login.scss +61 -0
- package/rules/.source/hellotv/src/pages/m-test.vue +84 -0
- package/rules/.source/hellotv/src/pages/my/README.md +87 -0
- package/rules/.source/hellotv/src/pages/my/index.vue +177 -0
- package/rules/.source/hellotv/src/pages/my/my-data-manager.ts +606 -0
- package/rules/.source/hellotv/src/pages/my/my-templates.vue +24 -0
- package/rules/.source/hellotv/src/pages/my/poster/index.vue +98 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-card2.vue +90 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-col.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-icon-title-row.vue +72 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-info.vue +50 -0
- package/rules/.source/hellotv/src/pages/my/poster/my-user.vue +126 -0
- package/rules/.source/hellotv/src/pages/play-test.vue +95 -0
- package/rules/.source/hellotv/src/pages/search/README.md +57 -0
- package/rules/.source/hellotv/src/pages/search/adapter/index.ts +285 -0
- package/rules/.source/hellotv/src/pages/search/adapter/interface.ts +60 -0
- package/rules/.source/hellotv/src/pages/search/api/index.ts +100 -0
- package/rules/.source/hellotv/src/pages/search/api/interface.ts +64 -0
- package/rules/.source/hellotv/src/pages/search/api/request-url.ts +20 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content-tabs.vue +153 -0
- package/rules/.source/hellotv/src/pages/search/components/search-content.vue +282 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyboard.vue +252 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword-grid.vue +85 -0
- package/rules/.source/hellotv/src/pages/search/components/search-keyword.vue +346 -0
- package/rules/.source/hellotv/src/pages/search/config.ts +10 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-content.scss +130 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyboard.scss +91 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword-grid.scss +30 -0
- package/rules/.source/hellotv/src/pages/search/scss/search-keyword.scss +104 -0
- package/rules/.source/hellotv/src/pages/search/scss/search.scss +18 -0
- package/rules/.source/hellotv/src/pages/search/three-columns.vue +164 -0
- package/rules/.source/hellotv/src/pages/search/two-columns.vue +128 -0
- package/rules/.source/hellotv/src/pages/tabs-test.vue +339 -0
- package/rules/.source/hellotv/src/pages/webview/load-web-view.vue +44 -0
- package/rules/.source/hellotv/src/routes.ts +142 -0
- package/rules/.source/hellotv/src/tools/common.ts +18 -0
- package/rules/.source/hellotv/src/tools/format-date.ts +16 -0
- package/rules/.source/hellotv/src/tools/index.ts +58 -0
- package/rules/.source/hellotv/src/tools/launch.ts +339 -0
- package/rules/.source/hellotv/src/tools/request/index.ts +206 -0
- package/rules/.source/hellotv/src/tools/request/interface.ts +64 -0
- package/rules/.source/hellotv/src/typings/shims-vue.d.ts +6 -0
- package/rules/.source/hellotv/src/vue.config.js +3 -0
- package/rules/.source/hellotv/tsconfig.json +34 -0
- package/rules/.windsurfrules +1 -0
- package/rules/AGENTS.md +1 -0
- package/rules/CLAUDE.md +1 -0
- package/rules/GEMINI.md +1 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view
|
|
3
|
+
class="grid-item-v"
|
|
4
|
+
:style="$props.style"
|
|
5
|
+
:focusable="true"
|
|
6
|
+
:focusScale="themeConfig.placeHolderFocusScale"
|
|
7
|
+
eventFocus
|
|
8
|
+
eventClick
|
|
9
|
+
>
|
|
10
|
+
<!-- 焦点状态下的删除样式 -->
|
|
11
|
+
<qt-view
|
|
12
|
+
showIf="${showDeleteCover}"
|
|
13
|
+
class="grid-item-v-delete"
|
|
14
|
+
style="background-color: transparent"
|
|
15
|
+
:focusable="false"
|
|
16
|
+
:duplicateParentState="true"
|
|
17
|
+
>
|
|
18
|
+
<qt-view
|
|
19
|
+
class="grid-item-v-delete"
|
|
20
|
+
:style="$props.imageStyle"
|
|
21
|
+
:showOnState="'focused'"
|
|
22
|
+
:focusable="false"
|
|
23
|
+
:duplicateParentState="true"
|
|
24
|
+
>
|
|
25
|
+
<qt-image
|
|
26
|
+
style="width: 40px; height: 50px"
|
|
27
|
+
:src="icDelete"
|
|
28
|
+
:focusable="false"
|
|
29
|
+
></qt-image>
|
|
30
|
+
</qt-view>
|
|
31
|
+
</qt-view>
|
|
32
|
+
<!-- 外层这个div的作用是模拟placeholder, 如果没有启动placeholder, 把背景色加到图片上, 有时会闪一下页面背景色 -->
|
|
33
|
+
<qt-view
|
|
34
|
+
style="background-color: rgba(255, 255, 255, 0.1); border-radius: 16px"
|
|
35
|
+
:focusable="false"
|
|
36
|
+
:duplicateParentState="true"
|
|
37
|
+
>
|
|
38
|
+
<!-- 封面 -->
|
|
39
|
+
<qt-image
|
|
40
|
+
class="grid-item-v-img"
|
|
41
|
+
:style="$props.imageStyle"
|
|
42
|
+
src="${cover}"
|
|
43
|
+
:postDelay="100"
|
|
44
|
+
:enableFocusBorder="true"
|
|
45
|
+
:focusable="false"
|
|
46
|
+
:duplicateParentState="true"
|
|
47
|
+
></qt-image>
|
|
48
|
+
</qt-view>
|
|
49
|
+
<!-- 角标 -->
|
|
50
|
+
<qt-text
|
|
51
|
+
showIf="${showCorner}"
|
|
52
|
+
class="grid-item-v-corner"
|
|
53
|
+
:style="{ top: 0, left: $props.style?.width.replace('px', '') - 75 }"
|
|
54
|
+
text="${corner}"
|
|
55
|
+
gravity="center"
|
|
56
|
+
:focusable="false"
|
|
57
|
+
:gradientBackground="{
|
|
58
|
+
colors: ['#73E59E', '#299B49'],
|
|
59
|
+
orientation: 0,
|
|
60
|
+
cornerRadii4: [0, 16, 0, 16],
|
|
61
|
+
}"
|
|
62
|
+
></qt-text>
|
|
63
|
+
<!-- 评分 -->
|
|
64
|
+
<qt-view
|
|
65
|
+
showIf="${showRating}"
|
|
66
|
+
class="grid-item-v-score"
|
|
67
|
+
:gradientBackground="scoreGradient"
|
|
68
|
+
:focusable="false"
|
|
69
|
+
>
|
|
70
|
+
<qt-text
|
|
71
|
+
class="grid-item-v-score-text"
|
|
72
|
+
text="${score}"
|
|
73
|
+
:focusable="false"
|
|
74
|
+
></qt-text>
|
|
75
|
+
</qt-view>
|
|
76
|
+
<!-- 标题 -->
|
|
77
|
+
<qt-text
|
|
78
|
+
class="grid-item-v-text"
|
|
79
|
+
text="${title}"
|
|
80
|
+
:paddingRect="[12, 0, 12, 0]"
|
|
81
|
+
:boldOnFocus="true"
|
|
82
|
+
:horizontalFadingEdgeEnabled="true"
|
|
83
|
+
:lines="1"
|
|
84
|
+
:ellipsizeMode="4"
|
|
85
|
+
:focusable="false"
|
|
86
|
+
:duplicateParentState="true"
|
|
87
|
+
></qt-text>
|
|
88
|
+
<!-- 播放进度 -->
|
|
89
|
+
<qt-text
|
|
90
|
+
showIf="${showProgress}"
|
|
91
|
+
class="grid-item-v-progress"
|
|
92
|
+
:style="{ width: $props.style?.width }"
|
|
93
|
+
text="${progress}"
|
|
94
|
+
gravity="center|start"
|
|
95
|
+
:paddingRect="[12, 0, 12, 0]"
|
|
96
|
+
:focusable="false"
|
|
97
|
+
:duplicateParentState="true"
|
|
98
|
+
></qt-text>
|
|
99
|
+
</qt-view>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<script setup lang="ts" name="GridItemVertical">
|
|
103
|
+
import themeConfig from "../config/theme-config";
|
|
104
|
+
import icDelete from "../assets/history/ic_delete.png";
|
|
105
|
+
|
|
106
|
+
defineProps({
|
|
107
|
+
style: {
|
|
108
|
+
type: Object,
|
|
109
|
+
default: () => ({
|
|
110
|
+
width: `260px`,
|
|
111
|
+
height: `414px`,
|
|
112
|
+
}),
|
|
113
|
+
},
|
|
114
|
+
imageStyle: {
|
|
115
|
+
type: Object,
|
|
116
|
+
default: () => ({
|
|
117
|
+
width: `260px`,
|
|
118
|
+
height: `368px`,
|
|
119
|
+
borderRadius: `${themeConfig.focusBorderCorner}px`,
|
|
120
|
+
}),
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// 评分背景色
|
|
125
|
+
const scoreGradient = {
|
|
126
|
+
colors: ["#00000000", "#CC000000"],
|
|
127
|
+
orientation: 0,
|
|
128
|
+
cornerRadii4: [
|
|
129
|
+
0,
|
|
130
|
+
0,
|
|
131
|
+
themeConfig.focusBorderCorner,
|
|
132
|
+
themeConfig.focusBorderCorner,
|
|
133
|
+
],
|
|
134
|
+
};
|
|
135
|
+
</script>
|
|
136
|
+
|
|
137
|
+
<style scoped lang="scss">
|
|
138
|
+
.grid-item-v {
|
|
139
|
+
background-color: transparent;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.grid-item-v-delete {
|
|
143
|
+
background-color: rgba(0, 0, 0, 0.65);
|
|
144
|
+
border-radius: 16px;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: 0.01px;
|
|
149
|
+
left: 0.01px;
|
|
150
|
+
z-index: 100;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.grid-item-v-img {
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.grid-item-v-corner {
|
|
158
|
+
width: 75px;
|
|
159
|
+
height: 35px;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
position: absolute;
|
|
162
|
+
color: white;
|
|
163
|
+
font-size: 24px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.grid-item-v-score {
|
|
167
|
+
width: 260px;
|
|
168
|
+
height: 90px;
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 278px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.grid-item-v-score-text {
|
|
175
|
+
width: 60px;
|
|
176
|
+
height: 40px;
|
|
177
|
+
background-color: transparent;
|
|
178
|
+
margin-left: 20px;
|
|
179
|
+
margin-top: 49px;
|
|
180
|
+
color: #ff5415;
|
|
181
|
+
font-size: 24px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.grid-item-v-text {
|
|
185
|
+
width: 260px;
|
|
186
|
+
height: 40px;
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
margin-top: 11px;
|
|
189
|
+
font-size: 30px;
|
|
190
|
+
color: rgba(255, 255, 255, 0.5);
|
|
191
|
+
focus-color: #ffffff;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.grid-item-v-progress {
|
|
195
|
+
height: 34px;
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
color: rgba(255, 255, 255, 0.35);
|
|
198
|
+
font-size: 24px;
|
|
199
|
+
focus-color: rgba(255, 255, 255, 0.75);
|
|
200
|
+
}
|
|
201
|
+
</style>
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ESIPlayerInterceptor,
|
|
3
|
+
ESMediaSource,
|
|
4
|
+
ESPlayerDefinition,
|
|
5
|
+
ESPlayerPlayMode,
|
|
6
|
+
ESPlayerRate,
|
|
7
|
+
} from "@extscreen/es3-player";
|
|
8
|
+
import { ESMediaItem, ESMediaItemList } from "@extscreen/es3-player-manager";
|
|
9
|
+
import { Native } from "@extscreen/es3-vue";
|
|
10
|
+
import { QTListViewItem } from "@quicktvui/quicktvui3";
|
|
11
|
+
import { QTListViewItemDecoration } from "@quicktvui/quicktvui3/dist/src/list-view/core/QTListViewItemDecoration";
|
|
12
|
+
import {
|
|
13
|
+
IMediaList,
|
|
14
|
+
IMediaMenu,
|
|
15
|
+
IMediaUrl,
|
|
16
|
+
PlayMenuNameFlag,
|
|
17
|
+
} from "./media-imp";
|
|
18
|
+
import xuanJiNormal from "../../../assets/component-media/ic_media_menu_xuanji_normal.png";
|
|
19
|
+
import xuanJiFocused from "../../../assets/component-media/ic_media_menu_xuanji_focused.png";
|
|
20
|
+
import settingNormal from "../../../assets/component-media/ic_media_menu_setting_normal.png";
|
|
21
|
+
import settingFocused from "../../../assets/component-media/ic_media_menu_setting_focused.png";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 当前 View 中:速率,清晰度,播放模式都是在 底部菜单获取焦点后才创建
|
|
25
|
+
* 阶梯加载 界面 node
|
|
26
|
+
*/
|
|
27
|
+
export enum IMediaViewState {
|
|
28
|
+
//整体 view 显示隐藏状态
|
|
29
|
+
STATE_MANAGER_VIEW_DISMISS = 0,
|
|
30
|
+
STATE_MANAGER_VIEW_SHOW = 1,
|
|
31
|
+
//速率 view 显示隐藏状态
|
|
32
|
+
STATE_MENU_RATE_VIEW_DISMISS = 2,
|
|
33
|
+
STATE_MENU_RATE_VIEW_SHOW = 3,
|
|
34
|
+
//清晰度 view 显示隐藏状态
|
|
35
|
+
STATE_MENU_DEFINITION_VIEW_DISMISS = 4,
|
|
36
|
+
STATE_MENU_DEFINITION_VIEW_SHOW = 5,
|
|
37
|
+
//播放模式 view 显示隐藏状态
|
|
38
|
+
STATE_MENU_MODE_VIEW_DISMISS = 6,
|
|
39
|
+
STATE_MENU_MODE_VIEW_SHOW = 7,
|
|
40
|
+
// 进度条 seek 开始结束状态
|
|
41
|
+
STATE_SEEK_BAR_START = 8,
|
|
42
|
+
STATE_SEEK_BAR_END = 9,
|
|
43
|
+
//试看提示展示
|
|
44
|
+
STATE_TRY_SEE_SHOW = 10,
|
|
45
|
+
STATE_TRY_SEE_DISMISS = 11,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function s_to_hs(s) {
|
|
49
|
+
//计算分钟
|
|
50
|
+
//算法:将秒数除以60,然后下舍入,既得到分钟数
|
|
51
|
+
let h;
|
|
52
|
+
h = Math.floor(s / 60);
|
|
53
|
+
//计算秒
|
|
54
|
+
//算法:取得秒%60的余数,既得到秒数
|
|
55
|
+
s = s % 60;
|
|
56
|
+
//将变量转换为字符串
|
|
57
|
+
h += "";
|
|
58
|
+
s += "";
|
|
59
|
+
//如果只有一位数,前面增加一个0
|
|
60
|
+
h = h.length == 1 ? "0" + h : h;
|
|
61
|
+
s = s.length == 1 ? "0" + s : s;
|
|
62
|
+
return h + ":" + s;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 初始化菜单列表
|
|
67
|
+
*/
|
|
68
|
+
export const initDefaultMenuList = (): Array<IMediaMenu> => [
|
|
69
|
+
// {type:2,nameFlag:PlayMenuNameFlag.COLLECT,iconNormal:noCollectNormal,iconFocus:noCollectFocus,name:'收藏',decoration:{right:30},style:{width:menuWidth,height:72}},
|
|
70
|
+
{
|
|
71
|
+
type: 2,
|
|
72
|
+
nameFlag: PlayMenuNameFlag.EPISODES,
|
|
73
|
+
icon: {
|
|
74
|
+
normal: "file://" + xuanJiNormal,
|
|
75
|
+
focused: "file://" + xuanJiFocused,
|
|
76
|
+
},
|
|
77
|
+
name: "选集",
|
|
78
|
+
decoration: { right: 30 },
|
|
79
|
+
style: { width: 170, height: 72 },
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 1,
|
|
83
|
+
nameFlag: PlayMenuNameFlag.RATE,
|
|
84
|
+
name: "倍速 1.0x",
|
|
85
|
+
decoration: { right: 30 },
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: 2,
|
|
89
|
+
nameFlag: PlayMenuNameFlag.SETTING,
|
|
90
|
+
icon: {
|
|
91
|
+
normal: "file://" + settingNormal,
|
|
92
|
+
focused: "file://" + settingFocused,
|
|
93
|
+
},
|
|
94
|
+
name: "设置",
|
|
95
|
+
style: { width: 170, height: 72 },
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* build倍速
|
|
101
|
+
* @param rateList
|
|
102
|
+
*/
|
|
103
|
+
export function buildPlayRates(
|
|
104
|
+
rateList: Array<ESPlayerRate>,
|
|
105
|
+
): Array<QTListViewItem> {
|
|
106
|
+
const itemList: Array<QTListViewItem> = [];
|
|
107
|
+
if (rateList && rateList.length) {
|
|
108
|
+
for (let i = 0; i < rateList.length; i++) {
|
|
109
|
+
const m = rateList[i];
|
|
110
|
+
const item = buildItemPlayRate(m);
|
|
111
|
+
itemList.push(item);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return itemList;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function buildItemPlayRate(rate: ESPlayerRate): QTListViewItem {
|
|
118
|
+
const name = (rate == 1 ? "1.0" : rate) + "x";
|
|
119
|
+
const decoration: QTListViewItemDecoration = {
|
|
120
|
+
bottom: 20,
|
|
121
|
+
};
|
|
122
|
+
return {
|
|
123
|
+
type: 1,
|
|
124
|
+
text: name,
|
|
125
|
+
rate: rate,
|
|
126
|
+
iconState: false,
|
|
127
|
+
decoration: decoration,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* build 播放模式
|
|
133
|
+
* @param modeList
|
|
134
|
+
*/
|
|
135
|
+
export function buildModes(
|
|
136
|
+
modeList: Array<ESPlayerPlayMode>,
|
|
137
|
+
): Array<QTListViewItem> {
|
|
138
|
+
const itemList: Array<QTListViewItem> = [];
|
|
139
|
+
if (modeList && modeList.length) {
|
|
140
|
+
for (let i = 0; i < modeList.length; i++) {
|
|
141
|
+
const m = modeList[i];
|
|
142
|
+
const item = buildItemMode(m);
|
|
143
|
+
itemList.push(item);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return itemList;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function buildItemMode(mode: ESPlayerPlayMode): QTListViewItem {
|
|
150
|
+
let modeName = "";
|
|
151
|
+
switch (mode) {
|
|
152
|
+
case ESPlayerPlayMode.ES_PLAYER_PLAY_MODE_ONCE:
|
|
153
|
+
modeName = "单次播放";
|
|
154
|
+
break;
|
|
155
|
+
case ESPlayerPlayMode.ES_PLAYER_PLAY_MODE_ORDER:
|
|
156
|
+
modeName = "顺序播放";
|
|
157
|
+
break;
|
|
158
|
+
case ESPlayerPlayMode.ES_PLAYER_PLAY_MODE_SHUFFLE:
|
|
159
|
+
modeName = "随机播放";
|
|
160
|
+
break;
|
|
161
|
+
case ESPlayerPlayMode.ES_PLAYER_PLAY_MODE_REPEAT:
|
|
162
|
+
modeName = "单片循环";
|
|
163
|
+
break;
|
|
164
|
+
case ESPlayerPlayMode.ES_PLAYER_PLAY_MODE_LOOP:
|
|
165
|
+
modeName = "自动连播";
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
const decoration: QTListViewItemDecoration = {
|
|
169
|
+
bottom: 16,
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
type: 1,
|
|
173
|
+
text: modeName,
|
|
174
|
+
iconState: false,
|
|
175
|
+
mode: mode,
|
|
176
|
+
decoration: decoration,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function getCurRateIndex(
|
|
181
|
+
rate: ESPlayerRate,
|
|
182
|
+
rateList: Array<ESPlayerRate>,
|
|
183
|
+
) {
|
|
184
|
+
return getCurIndex(rate, rateList);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function getCurModeIndex(
|
|
188
|
+
mode: ESPlayerPlayMode,
|
|
189
|
+
modeList: Array<ESPlayerPlayMode>,
|
|
190
|
+
): number {
|
|
191
|
+
return getCurIndex(mode, modeList);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function getCurIndex(item: any, list: Array<any>) {
|
|
195
|
+
for (let i = 0; i < list.length; i++) {
|
|
196
|
+
const m = list[i];
|
|
197
|
+
if (item == m) {
|
|
198
|
+
return i;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return -1;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function showNetSpeed() {
|
|
205
|
+
Native.callNative("ESNetworkSpeedModule", "showNetSpeed");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function stopNetSpeed() {
|
|
209
|
+
Native.callNative("ESNetworkSpeedModule", "stopNetSpeed");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* build 清晰度
|
|
214
|
+
* @param definitionList
|
|
215
|
+
*/
|
|
216
|
+
export function buildDefinitions(
|
|
217
|
+
definitionList: Array<ESPlayerDefinition>,
|
|
218
|
+
): Array<QTListViewItem> {
|
|
219
|
+
const itemList: Array<QTListViewItem> = [];
|
|
220
|
+
if (definitionList && definitionList.length) {
|
|
221
|
+
for (let i = 0; i < definitionList.length; i++) {
|
|
222
|
+
const m = definitionList[i];
|
|
223
|
+
const item = buildItemDefinition(m, i);
|
|
224
|
+
itemList.push(item);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return itemList;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function buildItemDefinition(
|
|
231
|
+
definition: ESPlayerDefinition,
|
|
232
|
+
): QTListViewItem {
|
|
233
|
+
const definitionName = decodeDefinition(definition);
|
|
234
|
+
const decoration: QTListViewItemDecoration = {
|
|
235
|
+
bottom: 20,
|
|
236
|
+
};
|
|
237
|
+
return {
|
|
238
|
+
type: 1,
|
|
239
|
+
text: definitionName,
|
|
240
|
+
iconState: false,
|
|
241
|
+
definition: definition,
|
|
242
|
+
decoration: decoration,
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function decodeDefinition(definition): string {
|
|
247
|
+
let definitionName = "";
|
|
248
|
+
switch (definition) {
|
|
249
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_SD:
|
|
250
|
+
definitionName = "标清";
|
|
251
|
+
break;
|
|
252
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_HD:
|
|
253
|
+
definitionName = "高清";
|
|
254
|
+
break;
|
|
255
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_FULL_HD:
|
|
256
|
+
definitionName = "超清";
|
|
257
|
+
break;
|
|
258
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_ORIGINAL:
|
|
259
|
+
definitionName = "原画";
|
|
260
|
+
break;
|
|
261
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_BLUERAY:
|
|
262
|
+
definitionName = "蓝光";
|
|
263
|
+
break;
|
|
264
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_FOURK:
|
|
265
|
+
definitionName = "4K";
|
|
266
|
+
break;
|
|
267
|
+
case ESPlayerDefinition.ES_PLAYER_DEFINITION_2K:
|
|
268
|
+
definitionName = "2K";
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
return definitionName;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export function encodeDefinition(definition: number = 0) {
|
|
275
|
+
let resultDefinition = ESPlayerDefinition.ES_PLAYER_DEFINITION_UNKNOWN;
|
|
276
|
+
switch (definition) {
|
|
277
|
+
case 0:
|
|
278
|
+
resultDefinition = ESPlayerDefinition.ES_PLAYER_DEFINITION_SD;
|
|
279
|
+
break;
|
|
280
|
+
case 1:
|
|
281
|
+
resultDefinition = ESPlayerDefinition.ES_PLAYER_DEFINITION_HD;
|
|
282
|
+
break;
|
|
283
|
+
case 2:
|
|
284
|
+
resultDefinition = ESPlayerDefinition.ES_PLAYER_DEFINITION_FULL_HD;
|
|
285
|
+
break;
|
|
286
|
+
case 3:
|
|
287
|
+
resultDefinition = ESPlayerDefinition.ES_PLAYER_DEFINITION_FOURK;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
return resultDefinition;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export function getCurDefinitionIndex(
|
|
294
|
+
definition: ESPlayerDefinition,
|
|
295
|
+
definitionList: Array<ESPlayerDefinition>,
|
|
296
|
+
): number {
|
|
297
|
+
return getCurIndex(definition, definitionList);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function buildPlayData(
|
|
301
|
+
playData: Array<IMediaList>,
|
|
302
|
+
index: number = 0,
|
|
303
|
+
interceptors?: Array<ESIPlayerInterceptor>,
|
|
304
|
+
): ESMediaItemList {
|
|
305
|
+
const playList: ESMediaItemList = {
|
|
306
|
+
index: index,
|
|
307
|
+
list: [],
|
|
308
|
+
};
|
|
309
|
+
if (playData && playData.length > 0) {
|
|
310
|
+
playData.map((item, index) => {
|
|
311
|
+
const mediaItem_0: ESMediaItem = buildItem(item, index, interceptors);
|
|
312
|
+
playList.list.push(mediaItem_0);
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
return playList;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export function buildMediaItemList(
|
|
319
|
+
startIndex: number = 0,
|
|
320
|
+
playDatas: Array<IMediaList>,
|
|
321
|
+
interceptors?: Array<ESIPlayerInterceptor>,
|
|
322
|
+
): Array<ESMediaItem> {
|
|
323
|
+
const itemList: Array<ESMediaItem> = [];
|
|
324
|
+
if (playDatas && playDatas.length > 0) {
|
|
325
|
+
playDatas.map((item, index) => {
|
|
326
|
+
const startP = index + startIndex;
|
|
327
|
+
const mediaItem_0: ESMediaItem = buildItem(item, startP, interceptors);
|
|
328
|
+
itemList.push(mediaItem_0);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
return itemList;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function buildItem(
|
|
335
|
+
item: IMediaList,
|
|
336
|
+
index: number,
|
|
337
|
+
interceptors?: Array<ESIPlayerInterceptor>,
|
|
338
|
+
): ESMediaItem {
|
|
339
|
+
const isRequestUrl = item?.isRequestUrl;
|
|
340
|
+
let mediaItem_0: ESMediaItem;
|
|
341
|
+
const all = {
|
|
342
|
+
playerType: item.playerType || 1, // 播放器类型
|
|
343
|
+
id: item.id,
|
|
344
|
+
type: item.type,
|
|
345
|
+
beforeSid: item?.beforeSid,
|
|
346
|
+
sid: item?.sid,
|
|
347
|
+
nextSid: item?.nextSid,
|
|
348
|
+
index: index,
|
|
349
|
+
title: item?.title,
|
|
350
|
+
subTitle: item?.subTitle,
|
|
351
|
+
albumName: item?.albumName,
|
|
352
|
+
};
|
|
353
|
+
if (isRequestUrl) {
|
|
354
|
+
mediaItem_0 = {
|
|
355
|
+
interceptors: interceptors,
|
|
356
|
+
};
|
|
357
|
+
} else {
|
|
358
|
+
mediaItem_0 = {
|
|
359
|
+
mediaSourceList: {
|
|
360
|
+
index: 0,
|
|
361
|
+
list: buildUrls(item.url ?? []),
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
mediaItem_0 = { ...mediaItem_0, ...all };
|
|
366
|
+
return mediaItem_0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function buildUrls(mediaUrlList: IMediaUrl[]): Array<ESMediaSource> {
|
|
370
|
+
const list: Array<ESMediaSource> = [];
|
|
371
|
+
for (let i = 0; i < mediaUrlList.length; i++) {
|
|
372
|
+
const item = mediaUrlList[i];
|
|
373
|
+
const mDefinition = item.definition ? Number(item.definition) : 1;
|
|
374
|
+
const mItem: ESMediaSource = { uri: item.playUrl, definition: mDefinition };
|
|
375
|
+
list.push(mItem);
|
|
376
|
+
}
|
|
377
|
+
return list;
|
|
378
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { QTListViewItemDecoration } from "@quicktvui/quicktvui3/dist/src/list-view/core/QTListViewItemDecoration";
|
|
2
|
+
import { QTWaterfallFlexStyle } from "@quicktvui/quicktvui3/dist/src/waterfall/core/QTWaterfallFlexStyle";
|
|
3
|
+
import { PlayType } from "../../../pages/home/adapter/tab-content/tab-content-imp";
|
|
4
|
+
|
|
5
|
+
export interface IMediaUrl {
|
|
6
|
+
definition: string;
|
|
7
|
+
playUrl: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IMediaList {
|
|
11
|
+
id: string;
|
|
12
|
+
type?: PlayType;
|
|
13
|
+
title?: string;
|
|
14
|
+
subTitle?: string;
|
|
15
|
+
cover?: string;
|
|
16
|
+
url?: Array<IMediaUrl>;
|
|
17
|
+
isRequestUrl?: boolean;
|
|
18
|
+
payStatus?: number | string;
|
|
19
|
+
thumbnail?: string;
|
|
20
|
+
[prop: string]: any;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum PlayMenuNameFlag {
|
|
24
|
+
COLLECT = "collect",
|
|
25
|
+
NEXT = "next",
|
|
26
|
+
EPISODES = "episodes",
|
|
27
|
+
RATE = "rate",
|
|
28
|
+
RATE_ITEM = "rateItem",
|
|
29
|
+
DEFINITION = "definition",
|
|
30
|
+
DEFINITION_ITEM = "definitionItem",
|
|
31
|
+
SETTING = "setting",
|
|
32
|
+
SETTING_ITEM = "settingItem",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IMediaMenu {
|
|
36
|
+
type: number;
|
|
37
|
+
nameFlag: PlayMenuNameFlag;
|
|
38
|
+
iconNormal?: string;
|
|
39
|
+
iconFocus?: string;
|
|
40
|
+
name: string;
|
|
41
|
+
decoration?: QTListViewItemDecoration;
|
|
42
|
+
style?: QTWaterfallFlexStyle;
|
|
43
|
+
[prop: string]: any;
|
|
44
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<qt-view class="media-loading-component-root-css" :focusable="false">
|
|
3
|
+
<qt-view
|
|
4
|
+
class="media-loading-component-root-css"
|
|
5
|
+
:focusable="false"
|
|
6
|
+
:visible="show"
|
|
7
|
+
>
|
|
8
|
+
<p class="loading-tips">{{ `视频正在加载中...${netTips}` }}</p>
|
|
9
|
+
</qt-view>
|
|
10
|
+
</qt-view>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script lang="ts">
|
|
14
|
+
import { EventBus } from "@extscreen/es3-vue";
|
|
15
|
+
import { defineComponent, onBeforeUnmount, onMounted, ref } from "vue";
|
|
16
|
+
import {
|
|
17
|
+
showNetSpeed,
|
|
18
|
+
stopNetSpeed,
|
|
19
|
+
} from "../build-data/media-control-adapter";
|
|
20
|
+
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "media-loading-component",
|
|
23
|
+
setup() {
|
|
24
|
+
const show = ref<boolean>(false);
|
|
25
|
+
const netTips = ref<string>("");
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
EventBus.$on("NetSpeed", onNetWorkTipChanged);
|
|
28
|
+
});
|
|
29
|
+
onBeforeUnmount(() => {
|
|
30
|
+
EventBus.$off("NetSpeed");
|
|
31
|
+
});
|
|
32
|
+
const onNetWorkTipChanged = (e) => {
|
|
33
|
+
const mb = Number(e.speedMbps);
|
|
34
|
+
const kb = Number(e.speedKbps);
|
|
35
|
+
netTips.value = mb >= 1 ? mb + "MB/s" : kb + "KB/s";
|
|
36
|
+
};
|
|
37
|
+
const showLoading = () => {
|
|
38
|
+
show.value = true;
|
|
39
|
+
showNetSpeed();
|
|
40
|
+
};
|
|
41
|
+
const dismissLoading = () => {
|
|
42
|
+
show.value = false;
|
|
43
|
+
stopNetSpeed();
|
|
44
|
+
};
|
|
45
|
+
return { show, netTips, showLoading, dismissLoading };
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style lang="scss" src="./scss/media-loading.scss"></style>
|