Current version: (AGNO-JavaScript API)
Following the schema.org reference:
Here we show you how you can pass video metadata to the player configuration.
This feature can be used as follows:
// required parameters:
brand: "agnoplay",
videoId: "Mbdskc9KsAii",
url: window.location.href,
...
// add the following:
has_video_object: true,
video_metadata: {
// see metadata feature
title: "Agnoplay Video", // required
datePublishStart: "2020-01-30T00:00:00", // required
poster: "//content.tmgvideo.nl/img/account=hPJiH9/item=Mbdskc9KsAii/thumbid=7/image.jpg?v=20190829131104", // required
}
And will add the following VideoObject script to the DOM:
<script type="application/ld+json" id="videoObject-[div-id]">
{
"@context":"http://schema.org/",
"@type":"VideoObject",
"@id":"https://www.agnoplay.com/cp/features/videoobject/#vjs_video_601",
"name":"Agnoplay Video",
"description":"Fully agnostic, cloudbased player service. Agnoplay offers a fully agnostic enterprise solution which enables seamless implementation, deployment and maintenance. Any device, any CDN, any 3rd party integration.",
"duration":"P1M56S",
"inLanguage":"nl",
"embedUrl":"https://player.agnoplay.com/player/Mbdskc9KsAii",
"keywords":"agnoplay,agnostic,video player",
"uploadDate":"2020-01-30T00:00:00",
"thumbnailUrl":"//content.tmgvideo.nl/img/account=hPJiH9/item=Mbdskc9KsAii/thumbid=7/image.jpg?v=20190829131104"
}
</script>
Adding the schema.org VideoObject helps the video being indexed on search engines like Google, Bing, Yahoo and more. Agnoplay provides this feature and adds the VideoObject to the DOM for you just like the example shown here.
Reference: https://schema.org/VideoObject
Google Reference: https://developers.google.com/search/docs/data-types/video