Current version: (AGNO-JavaScript API)
This feature can be used as follows, as a consumer you'll make the following HTTP request:
https://player.agnoplay.com/oembed/?format=json&url=https%3A%2F%2Fplayer.agnoplay.com%2Fembed%2F{brand_name}%3FvideoId%3DMbdskc9KsAii
In case of a licensed player please add a license to the query parameters like this
https://player.agnoplay.com/oembed/?format=json&license_key={license_key}&url=https%3A%2F%2Fplayer.agnoplay.com%2Fembed%2F{brand_name}%3FvideoId%3DMbdskc9KsAii
The provider (Agnoplay) then responds with an oEmbed response:
{
player_config: {
videoId: "Mbdskc9KsAii",
brand: "your-brand-name"
},
height: 450,
cache_age: 60,
version: "1.0",
provider_url: "player.agnoplay.com",
title: "Dit is een test voor Leidsch Dagblad #1",
provider_name: "Agnoplay",
width: 800,
thumbnail_url: "https://content.tmgvideo.nl/img/account=hPJiH9/item=Mbdskc9KsAii/thumbid=1/image.jpg?v=20190925172542",
thumbnail_width: 800,
thumbnail_height: 450,
type: "video",
html: "<iframe src="https://player.agnoplay.com/embed/cci?videoId=Mbdskc9KsAii" width="800" height="450" scrolling="no" frameborder="0" allowfullscreen></iframe>"
}
The type will be set to "video", "audio" or "live" based on the player configuration of the brand.
The implementation has been done following the oEmbed standard, please review https://oembed.com/#section2.
https://player.agnoplay.com/embed/*
https://player.agnoplay.com/oembed/
This is an example of the oEmbed feature.