youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
31 lines (30 loc) • 749 B
TypeScript
/** @hidden */
interface CaptionProperties {
text?: string;
start?: number;
duration?: number;
segments?: CaptionSegment[];
}
declare type CaptionSegment = {
utf8: string;
tOffsetMs?: number;
acAsrConf: number;
};
/**
* Represent a single video caption entry
*/
export declare class Caption implements CaptionProperties {
/** caption content */
text: string;
/** caption start time in milliseconds */
start: number;
/** caption duration in milliseconds */
duration: number;
/** caption duration in milliseconds */
segments: CaptionSegment[];
/** @hidden */
constructor(attr?: CaptionProperties);
/** transcript end time in milliseconds */
get end(): number;
}
export {};