feat: integrate Bunny Stream course videos
All checks were successful
CI / Validate frontend and API (push) Successful in 1m50s
CI / Build and publish Docker images (push) Successful in 18s

This commit is contained in:
Cauê Faleiros
2026-09-02 10:09:36 -03:00
parent 3d4c72e85c
commit 2c137529bc
15 changed files with 607 additions and 40 deletions

View File

@@ -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