Constructor
new Video(youtube, data)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
youtube |
YouTube
|
The YouTube instance creating this |
data |
Object
|
The data of the video |
Members
durationSeconds :number
The duration of the video in seconds
- Source:
Type:
-
number
full :boolean
Whether this is a full (returned from the videos API end point) or partial video (returned
as part of another resource).
- Source:
Type:
-
boolean
kind :string
The resource that this video was created from.
- Source:
Type:
-
string
maxRes :object
The maxiumum available resolution thumbnail.
- Source:
Type:
-
object
publishedAt :Date
The date/time this video was published
- Source:
Type:
-
Date
thumbnails :Object.<'default', 'medium', 'high', 'standard', 'maxres'>
The thumbnails of this video.
- Source:
Type:
-
Object.<'default', 'medium', 'high', 'standard', 'maxres'>
Methods
(static) extractID(url) → (nullable) {string}
Get a video ID from a string (URL or ID)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
The string to get the ID from |
Returns:
- Type:
-
string