I have a blog running with Gatsby + the Netlify CMS and sometimes I want to add to the blog post an embedded video from YouTube. I want to create for those videos a videoObject schema with the following structure:
{
"@context": "http://schema.org",
"@type": "VideoObject",
"name": "VIDEO TITLE",
"description": "VIDEO DESCRIPTION",
"thumbnailUrl": "VIDEO THUMBNAIL",
"uploadDate": "2018-04-16T08:01:27Z",
"duration": "PT4M43S",
"embedUrl": "https://www.youtube.com/embed/JypYtPhDeiI",
}
Does someone know what is the best way to do this?
Thank you in advance!
Regards.