youtubei.js / YTKids / VideoInfo
Class: VideoInfo
Defined in: src/parser/ytkids/VideoInfo.ts:11
Extends
Constructors
Constructor
new VideoInfo(
data,actions,cpn):VideoInfo
Defined in: src/parser/ytkids/VideoInfo.ts:17
Parameters
data
actions
cpn
string
Returns
VideoInfo
Overrides
Properties
annotations?
optionalannotations?:ObservedArray<PlayerAnnotationsExpanded>
Defined in: src/core/mixins/MediaInfo.ts:40
Inherited from
basic_info
basic_info:
object
Defined in: src/core/mixins/MediaInfo.ts:39
allow_ratings?
optionalallow_ratings?:boolean
author?
optionalauthor?:string
category
category:
string|null
channel
channel: {
id:string;name:string;url:string; } |null
channel_id?
optionalchannel_id?:string
duration?
optionalduration?:number
embed
embed: {
flash_secure_url:string;flash_url:string;height:any;iframe_url:string;width:any; } |null|undefined
end_timestamp
end_timestamp:
Date|null
has_ypc_metadata
has_ypc_metadata:
boolean|null
id?
optionalid?:string
is_crawlable?
optionalis_crawlable?:boolean
is_disliked
is_disliked:
boolean|undefined
is_family_safe
is_family_safe:
boolean|undefined=info.microformat.is_family_safe
is_liked
is_liked:
boolean|undefined
is_live?
optionalis_live?:boolean
is_live_content?
optionalis_live_content?:boolean
is_live_dvr_enabled?
optionalis_live_dvr_enabled?:boolean
is_low_latency_live_stream?
optionalis_low_latency_live_stream?:boolean
is_owner_viewing?
optionalis_owner_viewing?:boolean
is_post_live_dvr?
optionalis_post_live_dvr?:boolean
is_private?
optionalis_private?:boolean
is_unlisted
is_unlisted:
boolean|undefined=info.microformat.is_unlisted
is_upcoming?
optionalis_upcoming?:boolean
keywords?
optionalkeywords?:string[]
like_count
like_count:
number|undefined
live_chunk_readahead?
optionallive_chunk_readahead?:number
publish_date
publish_date:
string|null
short_description?
optionalshort_description?:string
start_timestamp
start_timestamp:
Date|null
tags
tags:
string[] |null
thumbnail?
optionalthumbnail?:Thumbnail[]
title?
optionaltitle?:string
upload_date
upload_date:
string|null
url_canonical
url_canonical:
string|null
view_count
view_count:
number|undefined
Inherited from
captions?
optionalcaptions?:PlayerCaptionsTracklist
Defined in: src/core/mixins/MediaInfo.ts:43
Inherited from
cards?
optionalcards?:CardCollection
Defined in: src/core/mixins/MediaInfo.ts:44
Inherited from
current_video_endpoint?
optionalcurrent_video_endpoint?:NavigationEndpoint
Defined in: src/parser/ytkids/VideoInfo.ts:14
endscreen?
optionalendscreen?:Endscreen
Defined in: src/core/mixins/MediaInfo.ts:42
Inherited from
playability_status?
optionalplayability_status?:IPlayabilityStatus
Defined in: src/core/mixins/MediaInfo.ts:46
Inherited from
player_config?
optionalplayer_config?:IPlayerConfig
Defined in: src/core/mixins/MediaInfo.ts:47
Inherited from
player_overlays?
optionalplayer_overlays?:PlayerOverlay
Defined in: src/parser/ytkids/VideoInfo.ts:15
slim_video_metadata?
optionalslim_video_metadata?:SlimVideoMetadata
Defined in: src/parser/ytkids/VideoInfo.ts:12
storyboards?
optionalstoryboards?:PlayerStoryboardSpec|PlayerLiveStoryboardSpec
Defined in: src/core/mixins/MediaInfo.ts:41
Inherited from
streaming_data?
optionalstreaming_data?:IStreamingData
Defined in: src/core/mixins/MediaInfo.ts:45
Inherited from
watch_next_feed?
optionalwatch_next_feed?:ObservedArray<YTNode>
Defined in: src/parser/ytkids/VideoInfo.ts:13
Accessors
actions
Get Signature
get actions():
Actions
Defined in: src/core/mixins/MediaInfo.ts:249
Returns
Inherited from
cpn
Get Signature
get cpn():
string
Defined in: src/core/mixins/MediaInfo.ts:256
Content Playback Nonce.
Returns
string
Inherited from
page
Get Signature
get page(): [
IPlayerResponse,INextResponse?]
Defined in: src/core/mixins/MediaInfo.ts:263
Parsed InnerTube response.
Returns
[IPlayerResponse, INextResponse?]
Inherited from
Methods
addToWatchHistory()
addToWatchHistory(
client_name?,client_version?,replacement?):Promise<Response>
Defined in: src/core/mixins/MediaInfo.ts:210
Parameters
client_name?
string
client_version?
string
replacement?
string = 'https://www.'
Returns
Promise<Response>
Inherited from
chooseFormat()
chooseFormat(
options):Format
Defined in: src/core/mixins/MediaInfo.ts:163
Selects the format that best matches the given options.
Parameters
options
Options
Returns
Inherited from
download()
download(
options?):Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>
Defined in: src/core/mixins/MediaInfo.ts:171
Downloads the video.
Parameters
options?
DownloadOptions = {}
Download options.
Returns
Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>
Inherited from
getStreamingInfo()
getStreamingInfo(
url_transformer?,format_filter?):Promise<StreamingInfo>
Defined in: src/core/mixins/MediaInfo.ts:146
Get a cleaned up representation of the adaptive_formats
Parameters
url_transformer?
format_filter?
Returns
Promise<StreamingInfo>
Inherited from
getTranscript()
getTranscript():
Promise<TranscriptInfo>
Defined in: src/core/mixins/MediaInfo.ts:184
Retrieves the video's transcript.
Returns
Promise<TranscriptInfo>
Inherited from
toDash()
toDash(
options?):Promise<string>
Defined in: src/core/mixins/MediaInfo.ts:106
Generates a DASH manifest from the streaming data.
Parameters
options?
format_filter?
manifest_options?
DashOptions
url_transformer?
Returns
Promise<string>
DASH manifest
Inherited from
updateWatchTime()
updateWatchTime(
startTime,client_name?,client_version?,replacement?):Promise<Response>
Defined in: src/core/mixins/MediaInfo.ts:229
Parameters
startTime
number
client_name?
string = Constants.CLIENTS.WEB.NAME
client_version?
string = Constants.CLIENTS.WEB.VERSION
replacement?
string = 'https://www.'
Returns
Promise<Response>