Current version: (AGNO-JavaScript API)

Instructions

Following the schema.org reference:

  • uploadDate field is required and described as the "Date when this media object was uploaded to this site.", it can be passed by the website as a field with name datePublishStart for custom metadata.
  • name field is required and can be passed by the website as a field with name title for custom metadata.
  • thumbnailUrl field is required and can be passed by the website as a field with name poster for custom metadata.

Here we show you how you can pass video metadata to the player configuration.

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>

VideoObject Live

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