Skip to content

LectureVideoResponse

Defined in: v1/schemas.ts:712

Wrapper for the /courses/:id/lectures/:id/videos/:id endpoint response.

The stream URL returned in video.video_asset.url is time-limited and signed. Always fetch a fresh response when you need a playable URL — do not store or reuse previously fetched stream URLs.

  • output<typeof LectureVideoResponseSchema>

video: { id: number; media_duration?: number | null; media_type?: string; status?: string; url_thumbnail?: string | null; video_asset?: { content_type?: string | null; url?: string | null; }; } = LectureVideoSchema

Defined in: v1/schemas.ts:701

id: number

optional media_duration?: number | null

optional media_type?: string

optional status?: string

optional url_thumbnail?: string | null

optional video_asset?: { content_type?: string | null; url?: string | null; }

optional content_type?: string | null

optional url?: string | null

z.infer.video