youtubei.js / YTNodes / PlayerOverlayAutoplay
Class: PlayerOverlayAutoplay
Extends
Constructors
new PlayerOverlayAutoplay()
new PlayerOverlayAutoplay(
data
):PlayerOverlayAutoplay
Parameters
• data: RawNode
Returns
Overrides
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:28
Properties
author
author:
Author
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:23
background
background:
Thumbnail
[]
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:21
cancel_button
cancel_button:
null
|Button
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:24
close_button
close_button:
null
|Button
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:26
count_down_secs_for_fullscreen
count_down_secs_for_fullscreen:
any
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:18
next_button
next_button:
null
|Button
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:25
prefer_immediate_redirect
prefer_immediate_redirect:
any
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:17
published
published:
Text
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:20
short_view_count
short_view_count:
Text
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:14
thumbnail_overlays
thumbnail_overlays:
ObservedArray
<YTNode
>
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:22
title
title:
Text
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:11
type
readonly
type:string
Inherited from
Defined in
video_id
video_id:
string
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:12
video_title
video_title:
Text
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:13
type
static
type:string
='PlayerOverlayAutoplay'
Overrides
Defined in
src/parser/classes/PlayerOverlayAutoplay.ts:9
Methods
as()
as<
T
,K
>(...types
):InstanceType
<K
[number
]>
Cast to one of the given types.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
Returns
InstanceType
<K
[number
]>
Inherited from
Defined in
hasKey()
hasKey<
T
,R
>(key
):this is PlayerOverlayAutoplay & { [k in string]: R }
Check for a key without asserting the type.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
this is PlayerOverlayAutoplay & { [k in string]: R }
Whether the node has the key
Inherited from
Defined in
is()
is<
T
,K
>(...types
):this is InstanceType<K[number]>
Check if the node is of the given type.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
The type to check
Returns
this is InstanceType<K[number]>
whether the node is of the given type
Inherited from
Defined in
key()
key<
T
,R
>(key
):Maybe
Assert that the node has the given key and return it.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
The value of the key wrapped in a Maybe
Throws
If the node does not have the key