'use client'; import { Button } from '@/components/ui/Button'; import { Icons } from '@/components/ui/Icon'; interface VideoPlayerErrorProps { error: string; onBack: () => void; onRetry: () => void; retryCount: number; maxRetries: number; } export function VideoPlayerError({ error, onBack, onRetry, retryCount, maxRetries, }: VideoPlayerErrorProps) { return (
{/* Glass Card Container */}
{/* Glowing Error Icon */}
{/* Glow effect */}

播放失败

{error}

{/* Browser compatibility hint */} {(error.includes('不支持') || error.includes('格式') || error.includes('编码')) && (

建议使用 Chrome、Edge 或 Safari 浏览器以获得最佳兼容性

)} {/* Action Buttons */}
{retryCount < maxRetries && ( )}
); }