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-live",
url: window.location.href,
...
// add the following:
has_video_object: true,
video_metadata: {
// see metadata feature
title: "Livestream Agnoplay", // required
datePublishStart: "2020-01-30T00:00:00", // required
poster: "//content.tmgvideo.nl/img/account=hPJiH9/item=Mbdskc9KsAii/thumbid=7/image.jpg?v=20200829131104", // 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":"Livestream Agnoplay",
"description":"Big Buck Bunny.",
"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=20200829131104"
"publication": {
"@type": "BroadcastEvent",
"name": "Livestream Agnoplay",
"isLiveBroadcast": true,
}
}
</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 Broadcast Reference: https://developers.google.com/search/docs/data-types/video#broadcast-event