"use client"; import type { ReactNode } from "react"; import { AdBanners, AdIcons } from "@/components/common/ads"; import { BackButton } from "@/components/common/back-button"; import { HlAction, InfoList, SectionTitle, TagLinks, VideoRecommend, type InfoRow, type TagLinkItem } from "@/components/media-page/parts"; import { XgPlayer } from "@/components/player/xg-player"; import type { ShortDramaItem } from "@/components/short-drama/data"; import { formatCount, type VideoDetail } from "./data"; type StatsProps = { liked: boolean; /** 接口 likeNum:点赞数 */ likeNum?: number; collected: boolean; /** 接口 countCollect:收藏数 */ countCollect?: number; onLike: () => void; onCollect: () => void; onShare: () => void; }; /** H5 视频页:播放器吸顶 → 正文(h1 / 资料 / 标签 / 介绍 / 操作)→ 相关视频推荐(替代原评论标签页) */ export function H5VideoPlay({ detail, src, related = [], infoRows, tags, onPlaySuccess, adGrid, bannerAds, liked, likeNum, collected, countCollect, onLike, onCollect, onShare, }: StatsProps & { detail: VideoDetail; src: string; related?: ShortDramaItem[]; infoRows: InfoRow[]; tags: TagLinkItem[]; onPlaySuccess?: () => void; adGrid?: ReactNode; bannerAds?: ReactNode; }) { const title = detail.title || "视频"; const desc = detail.desc?.trim() || ""; return (

视频库

{title}

{desc ? (
视频介绍

{desc}

) : null}
{adGrid ?? } {bannerAds ?? }
); }