-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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.