Current version: (AGNO-JavaScript API)

Instructions

Following the schema.org reference it states that the uploadDate is described as the "Date when this media object was uploaded to this site.". This uploadDate can only be passed by the website. 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",
videoId: "Mbdskc9KsAii",
url: window.location.href,
...
// add the following:
has_video_object: true,
video_metadata: {
  // see metadata feature
  uploadDate: "2019-08-01 18:14:01", // 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 player, any 3rd party integration.",
    "duration":"P1M56S",
    "inLanguage":"nl",
    "embedUrl":"https://player.agnoplay.com/player/Mbdskc9KsAii",
    "keywords":"agnoplay,agnostic,video player",
    "uploadDate":"2019-08-01 18:14:01",
    "thumbnailUrl":"//content.tmgvideo.nl/img/account=hPJiH9/item=Mbdskc9KsAii/thumbid=7/image.jpg?v=20190829131104"
}
</script>

VideoObject

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