Constructors
constructor
- new Video(title, id, url, formats?, lengthSeconds?, length?, author?, author_id?, description?, date?, views?, likes?, dislikes?, thumbnails?): Video
Parameters
- title: string
- id: string
- url: string
Optional
formats: Format[]Optional
lengthSeconds: numberOptional
length: stringOptional
author: stringOptional
author_id: stringOptional
description: stringOptional
date: stringOptional
views: numberOptional
likes: numberOptional
dislikes: numberOptional
thumbnails: Image[]
Properties
Optional
author
author?: string
Optional
author_id
author_id?: string
Optional
date
date?: string
Optional
description
description?: string
Optional
dislikes
dislikes?: number
Optional
formats
id
id: string
Optional
length
length?: string
Optional
lengthSeconds
lengthSeconds?: number
Optional
likes
likes?: number
Optional
thumbnails
title
title: string
url
url: string
Optional
views
views?: number
Name
Video
Description
Video object. Can be Minimal, Basic or Full.
Param: title
Title of the video.
Param: id
ID of the video.
Param: url
URL of the video.
Param: formats
List of available formats (basic or full only).
Param: lengthSeconds
Length of the video in seconds (basic or full only).
Param: length
Humanly-readable length of the video (basic or full only).
Param: author
Author username. (full only).
Param: author_id
Author ID. (full only).
Param: description
Description of the video (full only).
Param: date
Date of publishing (full only).
Param: views
Number of views (full only).
Param: likes
Number of likes (full only).
Param: dislikes
Number of dislikes (full only).
Param: thumbnails
Video thumbnails (full only).