feat: add more type-definitions for youtube-player

Co-authored-by: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>
This commit is contained in:
JellyBrick
2023-09-04 12:25:43 +09:00
parent d811ebadb4
commit 2eaa660a6d
3 changed files with 147 additions and 71 deletions

25
types/video-details.ts Normal file
View File

@ -0,0 +1,25 @@
export interface VideoDetails {
video_id: string;
author: string;
title: string;
isPlayable: boolean;
errorCode: null;
video_quality: string;
video_quality_features: unknown[];
list: string;
backgroundable: boolean;
eventId: string;
cpn: string;
isLive: boolean;
isWindowedLive: boolean;
isManifestless: boolean;
allowLiveDvr: boolean;
isListed: boolean;
isMultiChannelAudio: boolean;
hasProgressBarBoundaries: boolean;
isPremiere: boolean;
itct: string;
progressBarStartPositionUtcTimeMillis: number | null;
progressBarEndPositionUtcTimeMillis: number | null;
paidContentOverlayDurationMs: number;
}