Skip to content

YoutubeVideo node for more than Youtube video links #72

@epavlova

Description

@epavlova

Background

The content tree defines a node of type YoutubeVideo which represents a Youtube video link. The node has the following definition:

interface YoutubeVideo extends Node {
	type: "youtube-video"
	url: string
}

The bodyXML representation of a Youtube video link is the following:

<a data-asset-type="video" data-embedded="true" href=""></a>

Example: "Trump’s second term: what will it mean for America and the world?", Jan 2025:

<a data-asset-type=\"video\" data-embedded=\"true\" href=\"https://www.youtube.com/watch?v=Y_uIs_Z9z4w\"></a>

The XHTML representation is more generic, applicable to any video source. Nothing specifies that the video source is YouTube. For that reason, the Specialist content uses these <a data-asset-type="video"...> tags for Vimeo videos as well.

Examples:
"51 for 51: Industry has moved on from ‘boys club mentality’ but there’s more to do", Mar 2025 :

<a data-asset-type=\"video\" data-embedded=\"true\" href=\"https://vimeo.com/1069557147\"></a>

"Spring Statement 2025: Stride says chancellor ‘architect of her own misfortune’", Mar 2025

<a data-asset-type=\"video\" data-embedded=\"true\" href=\"https://vimeo.com/1069657473?share=copy#t=0\"></a>

"‘Paraplanners should not fear for their jobs because of AI’", Jan 2025:

<a data-asset-type=\"video\" data-embedded=\"true\" href=\"https://vimeo.com/1051880732?share=copy#t=0\"></a>

Possible approaches

In order to migrate the Specialist content to the content tree format, there should be Vimeo links representation. One option is for the YoutubeVideo node to be made more generic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions