feat: integrate Bunny Stream course videos
This commit is contained in:
13
types.ts
13
types.ts
@@ -13,12 +13,25 @@ export interface Attachment {
|
||||
downloadCount?: number;
|
||||
}
|
||||
|
||||
export type LessonMediaStatus = 'processing' | 'ready' | 'failed';
|
||||
|
||||
export interface LessonMedia {
|
||||
id?: string;
|
||||
provider: string;
|
||||
externalId: string;
|
||||
playbackUrl?: string | null;
|
||||
embedUrl?: string | null;
|
||||
status: LessonMediaStatus;
|
||||
durationSeconds?: number | null;
|
||||
}
|
||||
|
||||
export interface Lesson {
|
||||
id: string;
|
||||
title: string;
|
||||
duration: string;
|
||||
videoUrl: string;
|
||||
mediaProvider?: string;
|
||||
media?: LessonMedia[];
|
||||
isFree: boolean; // true = Public, false = Pro (Login required)
|
||||
description?: string;
|
||||
attachments?: Attachment[]; // Lesson-specific downloadable materials
|
||||
|
||||
Reference in New Issue
Block a user