lookup/youtube#

Variables#

YOUTUBE_SERVICE#

const YOUTUBE_SERVICE: "https://www.youtube.com/oembed" = "https://www.youtube.com/oembed"

Defined in: editor/src/lookup/youtube.ts:19

The oEmbed endpoint, also the service of every YouTube candidate.

Functions#

oembedUrl()#

oembedUrl(video): string

Defined in: editor/src/lookup/youtube.ts:22

The oEmbed URL of a video.

Parameters#

video#

string

Returns#

string


resolveYoutube()#

resolveYoutube(context, iri, signal?): Promise<Candidate | null>

Defined in: editor/src/lookup/youtube.ts:34

The video an IRI names: its title as the label, its channel as the description, its thumbnail. null for an IRI of no YouTube video and for any failed oEmbed request.

Parameters#

context#

LookupContext

iri#

string

signal?#

AbortSignal

Returns#

Promise<Candidate | null>