@quicktvui/ai 1.0.9 → 1.1.0
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/package.json +1 -1
- package/rules/.clinerules +1 -0
- package/rules/.cursorrules +1 -0
- 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,571 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-root-css" ref="detailRef">
|
|
3
|
+
<qt-waterfall
|
|
4
|
+
ref="waterfallRef"
|
|
5
|
+
class="detail-waterfall-css"
|
|
6
|
+
:scrollYLesserReferenceValue="30"
|
|
7
|
+
:scrollYGreaterReferenceValue="30"
|
|
8
|
+
:blockFocusDirections="['left', 'right']"
|
|
9
|
+
:enablePlaceholder="false"
|
|
10
|
+
:enableKeepFocus="false"
|
|
11
|
+
:descendantFocusability="descendantFocusability"
|
|
12
|
+
:qtTabSectionEnable="qtTabSectionEnable"
|
|
13
|
+
@onScroll="onScroll"
|
|
14
|
+
@onScrollStateChanged="onScrollStateChanged"
|
|
15
|
+
@onItemClick="onItemClick"
|
|
16
|
+
@onScrollYGreaterReference="onScrollYGreaterReference"
|
|
17
|
+
@onScrollYLesserReference="onScrollYLesserReference"
|
|
18
|
+
>
|
|
19
|
+
<template v-slot:section>
|
|
20
|
+
<header-section
|
|
21
|
+
ref="headerSectionRef"
|
|
22
|
+
:type="1"
|
|
23
|
+
:blockFocusDirections="['left', 'right', 'up']"
|
|
24
|
+
:focusable="false"
|
|
25
|
+
@onTopButtonFocus="onTopButtonFocus"
|
|
26
|
+
>
|
|
27
|
+
</header-section>
|
|
28
|
+
</template>
|
|
29
|
+
<template v-slot:vue-section>
|
|
30
|
+
<basic-section
|
|
31
|
+
ref="basicSectionRef"
|
|
32
|
+
@onIntroductionFocus="onIntroductionFocus"
|
|
33
|
+
@onMediaSeriesItemLoad="onMediaSeriesItemLoad"
|
|
34
|
+
@onMediaSeriesItemFocus="onMediaSeriesItemFocus"
|
|
35
|
+
@onMediaSeriesItemClick="onMediaSeriesItemClick"
|
|
36
|
+
@onMediaSeriesGroupItemFocus="onMediaSeriesGroupItemFocus"
|
|
37
|
+
@onPlayerPlaceholderFocus="onPlayerPlaceholderFocus"
|
|
38
|
+
@onPlayerPlaceholderClick="onPlayerPlaceholderClick"
|
|
39
|
+
>
|
|
40
|
+
</basic-section>
|
|
41
|
+
</template>
|
|
42
|
+
<template v-slot:item>
|
|
43
|
+
<recommend-item :type="10011"></recommend-item>
|
|
44
|
+
</template>
|
|
45
|
+
</qt-waterfall>
|
|
46
|
+
<!-- 播放器 -->
|
|
47
|
+
<media-player
|
|
48
|
+
ref="mediaPlayerRef"
|
|
49
|
+
name="media-player"
|
|
50
|
+
class="detail-media-player"
|
|
51
|
+
@onPlayerPlayMedia="onPlayerPlayMedia"
|
|
52
|
+
@onPlayerPlaying="onPlayerPlaying"
|
|
53
|
+
@onPlayerWindowTypeChanged="onPlayerWindowTypeChanged"
|
|
54
|
+
>
|
|
55
|
+
</media-player>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script setup lang="ts" name="detail">
|
|
60
|
+
import { ref, nextTick } from "vue";
|
|
61
|
+
import {
|
|
62
|
+
ESKeyCode,
|
|
63
|
+
ESKeyEvent,
|
|
64
|
+
ESLogLevel,
|
|
65
|
+
toast,
|
|
66
|
+
useESEventBus,
|
|
67
|
+
useESLog,
|
|
68
|
+
useESRuntime,
|
|
69
|
+
} from "@extscreen/es3-core";
|
|
70
|
+
import { useESRouter } from "@extscreen/es3-router";
|
|
71
|
+
import { ESPlayerWindowType } from "@extscreen/es3-player";
|
|
72
|
+
import { QTIWaterfall, QTWaterfallItem } from "@quicktvui/quicktvui3";
|
|
73
|
+
import { QTMediaSeries } from "@quicktvui/quicktvui3/dist/src/series/QTMediaSeries";
|
|
74
|
+
import BuildConfig from "../../config/build-config";
|
|
75
|
+
import detailManager from "./api/index";
|
|
76
|
+
import {
|
|
77
|
+
IMedia,
|
|
78
|
+
IRecommendItem,
|
|
79
|
+
IMediaPlayer,
|
|
80
|
+
IMediaItem,
|
|
81
|
+
} from "./adapter/interface";
|
|
82
|
+
import {
|
|
83
|
+
buildRecommendList,
|
|
84
|
+
buildSectionList,
|
|
85
|
+
buildWaterfall,
|
|
86
|
+
} from "./adapter/index";
|
|
87
|
+
import HeaderSection from "./components/section/header-section.vue";
|
|
88
|
+
import BasicSection from "./components/section/basic-section.vue";
|
|
89
|
+
import RecommendItem from "./components/recommend-item.vue";
|
|
90
|
+
import MediaPlayer from "./components/media-player/index.vue";
|
|
91
|
+
const TAG = "DetailPage";
|
|
92
|
+
const log = useESLog();
|
|
93
|
+
const runtime = useESRuntime();
|
|
94
|
+
const router = useESRouter();
|
|
95
|
+
const eventbus = useESEventBus();
|
|
96
|
+
let deviceId = runtime.getRuntimeDeviceId() ?? "";
|
|
97
|
+
const detailRef = ref();
|
|
98
|
+
const headerSectionRef = ref();
|
|
99
|
+
const basicSectionRef = ref();
|
|
100
|
+
let currenId = ref("");
|
|
101
|
+
const waterfallRef = ref<QTIWaterfall>();
|
|
102
|
+
let descendantFocusability = ref<number>(1);
|
|
103
|
+
let media: IMedia;
|
|
104
|
+
let isStopped = false;
|
|
105
|
+
const qtTabSectionEnable = {
|
|
106
|
+
tabEnable: false,
|
|
107
|
+
flexSectionEnable: true,
|
|
108
|
+
flexSection: {
|
|
109
|
+
qtPosterEnable: false,
|
|
110
|
+
qtPluginItemEnable: false,
|
|
111
|
+
cardItemEnable: false,
|
|
112
|
+
},
|
|
113
|
+
listSectionEnable: false,
|
|
114
|
+
listSectionItem: {
|
|
115
|
+
qtPosterEnable: false,
|
|
116
|
+
},
|
|
117
|
+
loadingSectionEnable: true,
|
|
118
|
+
endSectionEnable: true,
|
|
119
|
+
blankSectionEnable: false,
|
|
120
|
+
cardSectionEnable: false,
|
|
121
|
+
pluginSectionEnable: false,
|
|
122
|
+
vueSectionEnable: true,
|
|
123
|
+
itemStoreEnable: false,
|
|
124
|
+
};
|
|
125
|
+
let currentPlayIndex = -1; // 当前播放视频的index
|
|
126
|
+
const mediaPlayerRef = ref<IMediaPlayer>();
|
|
127
|
+
let lastWindowType: ESPlayerWindowType;
|
|
128
|
+
let enterByFullButton = 0; // 0 ,placeholder,1 : fullBtn,2 : mediaItem
|
|
129
|
+
let detailFocusTimer: any = null;
|
|
130
|
+
let waterfallScrollY = 0;
|
|
131
|
+
let changePlayerVisibleTimer: any = -1;
|
|
132
|
+
let mediaSeriesData: Array<any> = [];
|
|
133
|
+
// 生命周期
|
|
134
|
+
// ***************************初始化入口 onESCreate***************************
|
|
135
|
+
const onESCreate = (params) => {
|
|
136
|
+
// currenId.value = params && params.mediaId ? params.mediaId : '1584863712586579969'
|
|
137
|
+
currenId.value = "1584863712586579969";
|
|
138
|
+
isStopped = false;
|
|
139
|
+
initWaterfall();
|
|
140
|
+
getDetail();
|
|
141
|
+
};
|
|
142
|
+
const onESResume = () => {
|
|
143
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
144
|
+
log.d(TAG, "-------onESResume---------->>>>>");
|
|
145
|
+
}
|
|
146
|
+
initEventBus();
|
|
147
|
+
if (isStopped) {
|
|
148
|
+
let curIndex = currentPlayIndex > -1 ? currentPlayIndex : 0;
|
|
149
|
+
if (mediaSeriesData[curIndex].vipType == 0) {
|
|
150
|
+
mediaPlayerRef.value?.resume();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
isStopped = false;
|
|
154
|
+
};
|
|
155
|
+
const onESRestart = () => {};
|
|
156
|
+
const onESPause = () => {
|
|
157
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
158
|
+
log.d(TAG, "-------onESPause---------->>>>>");
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const onESStop = () => {
|
|
162
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
163
|
+
log.d(TAG, "-------onESStop---------->>>>>");
|
|
164
|
+
}
|
|
165
|
+
mediaPlayerRef.value?.stop();
|
|
166
|
+
setTimeout(() => {
|
|
167
|
+
mediaPlayerRef.value?.stop();
|
|
168
|
+
}, 300);
|
|
169
|
+
releaseEventBus();
|
|
170
|
+
isStopped = true;
|
|
171
|
+
};
|
|
172
|
+
const onESDestroy = () => {
|
|
173
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
174
|
+
log.d(TAG, "-------onESDestroy---------->>>>>");
|
|
175
|
+
}
|
|
176
|
+
mediaPlayerRef.value?.stop();
|
|
177
|
+
mediaPlayerRef.value?.reset();
|
|
178
|
+
mediaPlayerRef.value?.release();
|
|
179
|
+
basicSectionRef.value?.release();
|
|
180
|
+
};
|
|
181
|
+
//初始化waterfall
|
|
182
|
+
const initWaterfall = () => {
|
|
183
|
+
waterfallRef.value!.init(buildWaterfall());
|
|
184
|
+
basicSectionRef.value?.setAutofocus(true);
|
|
185
|
+
};
|
|
186
|
+
//获取详情页数据
|
|
187
|
+
const getDetail = () => {
|
|
188
|
+
detailManager
|
|
189
|
+
.getMediaDetail(currenId.value)
|
|
190
|
+
.then((res: IMedia) => {
|
|
191
|
+
media = res;
|
|
192
|
+
media.mediaSeriesType = 1; //设置选集类型
|
|
193
|
+
basicSectionRef.value?.init(media); //初始化基本介绍板块数据
|
|
194
|
+
nextTick(async () => {
|
|
195
|
+
waterfallRef.value?.scrollToTop();
|
|
196
|
+
//加载waterfall 板块数据
|
|
197
|
+
let sections = buildSectionList(res);
|
|
198
|
+
waterfallRef.value?.setSectionList(sections);
|
|
199
|
+
//获取播放历史
|
|
200
|
+
detailManager
|
|
201
|
+
.getRecordData(media.id, deviceId, "history")
|
|
202
|
+
.then((result) => {
|
|
203
|
+
if (result) {
|
|
204
|
+
media.history = result;
|
|
205
|
+
currentPlayIndex = Math.min(
|
|
206
|
+
Math.max((Number(result.episode) || 0) - 1, 0),
|
|
207
|
+
Math.max(media.episodes - 1, 0),
|
|
208
|
+
);
|
|
209
|
+
media._prevPlayIndex = currentPlayIndex;
|
|
210
|
+
basicSectionRef.value?.scrollMediaSeriesTo(currentPlayIndex);
|
|
211
|
+
basicSectionRef.value?.setMediaSeriesSelected(currentPlayIndex);
|
|
212
|
+
} else {
|
|
213
|
+
currentPlayIndex = 0;
|
|
214
|
+
media._prevPlayIndex = currentPlayIndex;
|
|
215
|
+
}
|
|
216
|
+
})
|
|
217
|
+
.catch(() => {
|
|
218
|
+
currentPlayIndex = 0;
|
|
219
|
+
media._prevPlayIndex = currentPlayIndex;
|
|
220
|
+
});
|
|
221
|
+
mediaPlayerRef.value?.play(media);
|
|
222
|
+
//延迟加载相关推荐列表数据更新相关推荐板块 不影响主页面展示速度
|
|
223
|
+
getRecommendList(media.id);
|
|
224
|
+
});
|
|
225
|
+
})
|
|
226
|
+
.catch((err) => {
|
|
227
|
+
console.log(err, "999999999");
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
//获取相关推荐列表数据
|
|
231
|
+
const getRecommendList = (id: string) => {
|
|
232
|
+
detailManager.getRecommendList(id).then(
|
|
233
|
+
(recommendList: Array<IRecommendItem>) => {
|
|
234
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
235
|
+
log.d(
|
|
236
|
+
TAG,
|
|
237
|
+
"-------getRecommendList----success------>>>>>",
|
|
238
|
+
recommendList,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
const section = waterfallRef.value?.getSection(2);
|
|
242
|
+
if (section) {
|
|
243
|
+
section.itemList = buildRecommendList(recommendList);
|
|
244
|
+
waterfallRef.value?.updateSection(2, section);
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
(error) => {
|
|
248
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
249
|
+
log.d(TAG, id + "-------getRecommendList----error------>>>>>", error);
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
);
|
|
253
|
+
};
|
|
254
|
+
const initEventBus = () => {
|
|
255
|
+
eventbus.on("onMenuFullButtonClick", onMenuFullButtonClick);
|
|
256
|
+
eventbus.on("onMenuFavouriteButtonClick", onMenuFavouriteButtonClick);
|
|
257
|
+
eventbus.on("onMenuVIPButtonClick", onMenuVIPButtonClick);
|
|
258
|
+
};
|
|
259
|
+
const releaseEventBus = () => {
|
|
260
|
+
eventbus.off("onMenuFullButtonClick", onMenuFullButtonClick);
|
|
261
|
+
eventbus.off("onMenuFavouriteButtonClick", onMenuFavouriteButtonClick);
|
|
262
|
+
eventbus.off("onMenuVIPButtonClick", onMenuVIPButtonClick);
|
|
263
|
+
};
|
|
264
|
+
// waterfall 回调
|
|
265
|
+
const onScroll = (offsetX: number, scrollY: number) => {
|
|
266
|
+
log.d(
|
|
267
|
+
TAG,
|
|
268
|
+
"---滚动----onScroll-------->>>>" +
|
|
269
|
+
" offsetX:" +
|
|
270
|
+
offsetX +
|
|
271
|
+
" scrollY:" +
|
|
272
|
+
scrollY,
|
|
273
|
+
);
|
|
274
|
+
waterfallScrollY = scrollY;
|
|
275
|
+
};
|
|
276
|
+
const onScrollStateChanged = (x: number, y: number, state: number) => {
|
|
277
|
+
clearTimeout(changePlayerVisibleTimer);
|
|
278
|
+
if (state == 0) {
|
|
279
|
+
changePlayerVisibleTimer = setTimeout(() => {
|
|
280
|
+
mediaPlayerRef.value?.changeVisible(true);
|
|
281
|
+
}, 200);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const onItemClick = (
|
|
285
|
+
sectionIndex: number,
|
|
286
|
+
position: number,
|
|
287
|
+
item: QTWaterfallItem,
|
|
288
|
+
) => {
|
|
289
|
+
if (!item) return;
|
|
290
|
+
log.d(
|
|
291
|
+
TAG,
|
|
292
|
+
"-------onItemClick-------->>>>" +
|
|
293
|
+
" sectionIndex:" +
|
|
294
|
+
sectionIndex +
|
|
295
|
+
" position:" +
|
|
296
|
+
position +
|
|
297
|
+
" item:",
|
|
298
|
+
item,
|
|
299
|
+
);
|
|
300
|
+
switch (sectionIndex) {
|
|
301
|
+
case 1:
|
|
302
|
+
break;
|
|
303
|
+
case 2:
|
|
304
|
+
router.push({
|
|
305
|
+
name: "detail",
|
|
306
|
+
params: {
|
|
307
|
+
id: item.item.id,
|
|
308
|
+
},
|
|
309
|
+
replace: true,
|
|
310
|
+
});
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const onScrollYGreaterReference = () => {
|
|
315
|
+
if (
|
|
316
|
+
mediaPlayerRef.value?.getWindowType() ==
|
|
317
|
+
ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_SMALL
|
|
318
|
+
) {
|
|
319
|
+
mediaPlayerRef.value?.setFloatWindow();
|
|
320
|
+
}
|
|
321
|
+
basicSectionRef.value?.setAutofocus(false);
|
|
322
|
+
};
|
|
323
|
+
const onScrollYLesserReference = () => {
|
|
324
|
+
if (
|
|
325
|
+
mediaPlayerRef.value?.getWindowType() ==
|
|
326
|
+
ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FLOAT ||
|
|
327
|
+
mediaPlayerRef.value?.getLoadLow()
|
|
328
|
+
) {
|
|
329
|
+
mediaPlayerRef.value?.setSmallWindow();
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
// header-setion 回调
|
|
333
|
+
const onTopButtonFocus = (e: any) => {
|
|
334
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
335
|
+
log.d(TAG, "-------onTopButtonFocus----->>>>>", e);
|
|
336
|
+
}
|
|
337
|
+
waterfallRef.value?.scrollToTop();
|
|
338
|
+
if (
|
|
339
|
+
mediaPlayerRef.value?.getWindowType() ==
|
|
340
|
+
ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FLOAT
|
|
341
|
+
) {
|
|
342
|
+
mediaPlayerRef.value?.setSmallWindow();
|
|
343
|
+
}
|
|
344
|
+
cancelDetailRequestFocusTimer();
|
|
345
|
+
};
|
|
346
|
+
const cancelDetailRequestFocusTimer = () => {
|
|
347
|
+
if (detailFocusTimer != null) {
|
|
348
|
+
clearTimeout(detailFocusTimer);
|
|
349
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
350
|
+
log.d(
|
|
351
|
+
TAG,
|
|
352
|
+
"-------requestFullButtonFocus--cancelDetailRequestFocusTimer-->>>>>",
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
detailFocusTimer = null;
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
const onMenuFullButtonClick = () => {
|
|
359
|
+
enterByFullButton = 1;
|
|
360
|
+
basicSectionRef.value?.setAutofocus(false);
|
|
361
|
+
mediaPlayerRef.value?.setFullWindow();
|
|
362
|
+
};
|
|
363
|
+
const onMenuFavouriteButtonClick = (val: boolean) => {
|
|
364
|
+
const body = {
|
|
365
|
+
id: media.id,
|
|
366
|
+
deviceId: deviceId,
|
|
367
|
+
recordType: "favorite",
|
|
368
|
+
title: media.title,
|
|
369
|
+
};
|
|
370
|
+
if (val) {
|
|
371
|
+
//收藏
|
|
372
|
+
detailManager
|
|
373
|
+
.reportRecordData(body)
|
|
374
|
+
.then(() => {})
|
|
375
|
+
.catch(() => {});
|
|
376
|
+
} else {
|
|
377
|
+
//取消收藏
|
|
378
|
+
detailManager
|
|
379
|
+
.deleteRecordData(body.id, body.deviceId, body.recordType)
|
|
380
|
+
.then(() => {})
|
|
381
|
+
.catch(() => {});
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
const onMenuVIPButtonClick = () => {
|
|
385
|
+
toast.showToast("去付费");
|
|
386
|
+
};
|
|
387
|
+
// basic-setion 回调
|
|
388
|
+
const onIntroductionFocus = (focused: boolean) => {
|
|
389
|
+
if (focused) {
|
|
390
|
+
waterfallRef.value?.scrollToTop();
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
const onMediaSeriesItemLoad = (page: number, data: Array<IMediaItem>) => {
|
|
394
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
395
|
+
log.d(TAG, "-------onMediaListItemLoad---->>>>>" + page, data);
|
|
396
|
+
}
|
|
397
|
+
//全屏菜单数据
|
|
398
|
+
eventbus.emit("onMediaListItemLoad", page, data);
|
|
399
|
+
mediaSeriesData = mediaSeriesData.concat(data);
|
|
400
|
+
mediaPlayerRef.value?.addMediaItemList(page, data);
|
|
401
|
+
if (currentPlayIndex >= 0) {
|
|
402
|
+
mediaPlayerRef.value?.playMediaItemByIndex(currentPlayIndex);
|
|
403
|
+
currentPlayIndex = -1;
|
|
404
|
+
media._prevPlayIndex = -1;
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
const onMediaSeriesItemFocus = () => {};
|
|
408
|
+
const onMediaSeriesItemClick = (index: number, data: QTMediaSeries) => {
|
|
409
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
410
|
+
log.d(TAG, "-------onMediaListItemClicked----->>>>>" + index, data);
|
|
411
|
+
}
|
|
412
|
+
if (basicSectionRef.value?.getMediaSelectedPosition() == index) {
|
|
413
|
+
if (data && data.vipType == 0) {
|
|
414
|
+
enterByFullButton = 2;
|
|
415
|
+
mediaPlayerRef.value?.setFullWindow();
|
|
416
|
+
} else {
|
|
417
|
+
toast.showToast("去支付");
|
|
418
|
+
}
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
if (data.id != null) {
|
|
422
|
+
mediaPlayerRef.value?.stop();
|
|
423
|
+
mediaPlayerRef.value?.playMediaItemById(data.id);
|
|
424
|
+
if (BuildConfig.isLowEndDev) {
|
|
425
|
+
mediaPlayerRef.value?.setFullWindow();
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
const onMediaSeriesGroupItemFocus = () => {};
|
|
430
|
+
const onPlayerPlaceholderFocus = (focused: boolean) => {
|
|
431
|
+
if (focused) {
|
|
432
|
+
waterfallRef.value?.scrollToTop();
|
|
433
|
+
waterfallScrollY = 0;
|
|
434
|
+
cancelDetailRequestFocusTimer();
|
|
435
|
+
}
|
|
436
|
+
eventbus.emit("onPlayerPlaceholderFocus", focused);
|
|
437
|
+
};
|
|
438
|
+
//小窗播放器placeholeder的点击事件
|
|
439
|
+
const onPlayerPlaceholderClick = () => {
|
|
440
|
+
let curIndex = currentPlayIndex > -1 ? currentPlayIndex : 0;
|
|
441
|
+
//判断当前分集是否免费
|
|
442
|
+
if (mediaSeriesData[curIndex].vipType == 0) {
|
|
443
|
+
mediaPlayerRef.value?.setFullWindow();
|
|
444
|
+
enterByFullButton = 0;
|
|
445
|
+
} else {
|
|
446
|
+
toast.showToast("去支付");
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
// 播放器
|
|
450
|
+
const onPlayerPlayMedia = () => {
|
|
451
|
+
// 播放器媒体列表开始播放回调
|
|
452
|
+
const playingIndex = mediaPlayerRef.value?.getPlayingMediaIndex() ?? -1;
|
|
453
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
454
|
+
log.d(
|
|
455
|
+
TAG,
|
|
456
|
+
"----onMediaListItemClicked---onPlayerPlayMedia---->>>>>" + playingIndex,
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
if (playingIndex >= 0) {
|
|
460
|
+
basicSectionRef.value?.scrollMediaSeriesTo(playingIndex);
|
|
461
|
+
basicSectionRef.value?.setMediaSeriesSelected(playingIndex);
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
const onPlayerPlaying = () => {
|
|
465
|
+
// 播放器开始播放回调 隐藏占位图
|
|
466
|
+
basicSectionRef.value?.showPlayerPlaceholderImg(false);
|
|
467
|
+
};
|
|
468
|
+
const onPlayerWindowTypeChanged = (windowType: ESPlayerWindowType) => {
|
|
469
|
+
//播放器窗口改变回调
|
|
470
|
+
log.d(TAG, "-------onPlayerWindowTypeChanged-------->>>>" + windowType);
|
|
471
|
+
switch (windowType) {
|
|
472
|
+
case ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FULL:
|
|
473
|
+
descendantFocusability.value = 2;
|
|
474
|
+
break;
|
|
475
|
+
case ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FLOAT:
|
|
476
|
+
break;
|
|
477
|
+
case ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_SMALL:
|
|
478
|
+
descendantFocusability.value = 1;
|
|
479
|
+
if (lastWindowType === ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FULL) {
|
|
480
|
+
detailFocusTimer = setTimeout(() => {
|
|
481
|
+
cancelDetailRequestFocusTimer();
|
|
482
|
+
switch (enterByFullButton) {
|
|
483
|
+
case 0:
|
|
484
|
+
basicSectionRef.value?.requestPlayerPlaceholderFocus();
|
|
485
|
+
break;
|
|
486
|
+
case 1:
|
|
487
|
+
basicSectionRef.value?.requestFullButtonFocus();
|
|
488
|
+
break;
|
|
489
|
+
case 2:
|
|
490
|
+
basicSectionRef.value?.requestCurrentMediaFocus();
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
}, 300);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
if (log.isLoggable(ESLogLevel.DEBUG)) {
|
|
497
|
+
log.d(TAG, "-----全屏---------ES_PLAYER_WINDOW_TYPE_SMALL------>>>>");
|
|
498
|
+
}
|
|
499
|
+
if (media && media.episodes < 2) {
|
|
500
|
+
basicSectionRef.value?.setAutofocus(false);
|
|
501
|
+
detailFocusTimer = setTimeout(() => {
|
|
502
|
+
cancelDetailRequestFocusTimer();
|
|
503
|
+
basicSectionRef.value?.requestPlayerPlaceholderFocus();
|
|
504
|
+
}, 0);
|
|
505
|
+
} else {
|
|
506
|
+
basicSectionRef.value?.setAutofocus(false);
|
|
507
|
+
}
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
lastWindowType = windowType;
|
|
511
|
+
};
|
|
512
|
+
// 按键
|
|
513
|
+
const onKeyDown = (keyEvent: ESKeyEvent) => {
|
|
514
|
+
if (
|
|
515
|
+
(keyEvent.keyCode === ESKeyCode.ES_KEYCODE_DPAD_CENTER ||
|
|
516
|
+
keyEvent.keyCode === ESKeyCode.ES_KEYCODE_ENTER) &&
|
|
517
|
+
mediaPlayerRef.value?.getWindowType() ===
|
|
518
|
+
ESPlayerWindowType.ES_PLAYER_WINDOW_TYPE_FULL
|
|
519
|
+
) {
|
|
520
|
+
let curIndex = currentPlayIndex > -1 ? currentPlayIndex : 0;
|
|
521
|
+
if (mediaSeriesData[curIndex].vipType != 0) {
|
|
522
|
+
toast.showToast("去支付");
|
|
523
|
+
return true;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (mediaPlayerRef.value?.onKeyDown(keyEvent)) {
|
|
527
|
+
return true;
|
|
528
|
+
}
|
|
529
|
+
return;
|
|
530
|
+
};
|
|
531
|
+
const onKeyUp = (keyEvent: ESKeyEvent) => {
|
|
532
|
+
if (mediaPlayerRef.value?.onKeyUp(keyEvent)) {
|
|
533
|
+
return true;
|
|
534
|
+
}
|
|
535
|
+
return;
|
|
536
|
+
};
|
|
537
|
+
// 返回
|
|
538
|
+
const onBackPressed = () => {
|
|
539
|
+
if (mediaPlayerRef.value?.onBackPressed()) {
|
|
540
|
+
return true;
|
|
541
|
+
}
|
|
542
|
+
if (waterfallScrollY > 0) {
|
|
543
|
+
waterfallRef.value?.scrollToTop();
|
|
544
|
+
waterfallScrollY = 0;
|
|
545
|
+
detailFocusTimer = setTimeout(() => {
|
|
546
|
+
cancelDetailRequestFocusTimer();
|
|
547
|
+
mediaPlayerRef.value?.changeVisible(true);
|
|
548
|
+
basicSectionRef.value?.requestPlayerPlaceholderFocus();
|
|
549
|
+
}, 300);
|
|
550
|
+
return true;
|
|
551
|
+
}
|
|
552
|
+
router.back();
|
|
553
|
+
return true;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
defineExpose({
|
|
557
|
+
onScrollYGreaterReference,
|
|
558
|
+
onScrollYLesserReference,
|
|
559
|
+
onESCreate,
|
|
560
|
+
onESRestart,
|
|
561
|
+
onESPause,
|
|
562
|
+
onESStop,
|
|
563
|
+
onESResume,
|
|
564
|
+
onESDestroy,
|
|
565
|
+
onKeyDown,
|
|
566
|
+
onKeyUp,
|
|
567
|
+
onBackPressed,
|
|
568
|
+
});
|
|
569
|
+
</script>
|
|
570
|
+
|
|
571
|
+
<style lang="scss" src="./scss/index.scss"></style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
$home-width:1920px;
|
|
2
|
+
$home-height:1080px;
|
|
3
|
+
|
|
4
|
+
.detail-root-css{
|
|
5
|
+
width: $home-width;
|
|
6
|
+
height: $home-height;
|
|
7
|
+
background-color: $theme-bg-color;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
.detail-waterfall-css{
|
|
13
|
+
width: $home-width;
|
|
14
|
+
height: $home-height;
|
|
15
|
+
background-color: $theme-bg-color;
|
|
16
|
+
position: absolute;
|
|
17
|
+
}
|
|
18
|
+
.detail-media-player{
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="media-loading-view-root-css"
|
|
4
|
+
:style="{ width: `${playerWidth}px`, height: `${playerHeight}px` }"
|
|
5
|
+
:blockFocusDirections="['left', 'right', 'down', 'up']"
|
|
6
|
+
:focusable="false"
|
|
7
|
+
>
|
|
8
|
+
<media-loading-component ref="mediaLoadingRef" />
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
import { ESPlayerInfo } from "@extscreen/es3-player";
|
|
14
|
+
import { ESMediaItem } from "@extscreen/es3-player-manager";
|
|
15
|
+
// import { RouteRecordName, useESRoute } from '@extscreen/es3-router'
|
|
16
|
+
import { defineComponent, ref } from "vue";
|
|
17
|
+
// import { ESLogLevel, useESEventBus, useESLog } from '@extscreen/es3-core'
|
|
18
|
+
// import MediaConfig from '../../../../components/media/build-data/media-config'
|
|
19
|
+
import MediaLoadingComponent from "../../../../components/media/view/media-loading-component.vue";
|
|
20
|
+
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: "full-player-loading",
|
|
23
|
+
components: { MediaLoadingComponent },
|
|
24
|
+
setup(props, context) {
|
|
25
|
+
// const log = useESLog()
|
|
26
|
+
// const route = useESRoute()
|
|
27
|
+
// const esEventBus = useESEventBus()
|
|
28
|
+
|
|
29
|
+
const mediaLoadingRef = ref();
|
|
30
|
+
|
|
31
|
+
const playerWidth = ref<number>(0);
|
|
32
|
+
const playerHeight = ref<number>(0);
|
|
33
|
+
let isBuffStart = -1;
|
|
34
|
+
const onPlayerPlayMedia = (mediaItem: ESMediaItem) => {
|
|
35
|
+
mediaLoadingRef.value?.showLoading();
|
|
36
|
+
};
|
|
37
|
+
const onPlayerPlaying = () => {
|
|
38
|
+
mediaLoadingRef.value?.dismissLoading();
|
|
39
|
+
};
|
|
40
|
+
const onPlayerBufferStart = () => {
|
|
41
|
+
if (isBuffStart === -1) {
|
|
42
|
+
mediaLoadingRef.value?.showLoading();
|
|
43
|
+
isBuffStart = 1;
|
|
44
|
+
} else {
|
|
45
|
+
isBuffStart = -1;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const onPlayerBufferEnd = () => {
|
|
49
|
+
if (isBuffStart === 1) {
|
|
50
|
+
isBuffStart = -1;
|
|
51
|
+
mediaLoadingRef.value?.dismissLoading();
|
|
52
|
+
} else {
|
|
53
|
+
isBuffStart = 2;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const onPlayerInfo = (info: ESPlayerInfo) => {
|
|
57
|
+
if (info.infoCode === 10008 || info.infoCode === 3) {
|
|
58
|
+
mediaLoadingRef.value?.dismissLoading();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
mediaLoadingRef,
|
|
63
|
+
playerWidth,
|
|
64
|
+
playerHeight,
|
|
65
|
+
onPlayerPlayMedia,
|
|
66
|
+
onPlayerInfo,
|
|
67
|
+
onPlayerPlaying,
|
|
68
|
+
onPlayerBufferStart,
|
|
69
|
+
onPlayerBufferEnd,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<style
|
|
76
|
+
lang="scss"
|
|
77
|
+
src="../../../../components/media/view/scss/media-loading.scss"
|
|
78
|
+
></style>
|