origin/apps/web/src/components/presentation/video-player/interface.ts

11 lines
266 B
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 定义清晰度选项的类型
export interface Resolution {
id: number;
height: number;
width: number;
bitrate: number;
label: string;
url?: string; // 可选清晰度对应的视频URL
active?: boolean; // 可选:是否是当前激活的清晰度
}