Screenr now supports oEmbed
Screenr just made it even easier for 3rd party sites and apps to include Screenr screencasts. Today we officially announce Screenr oEmbed support!
What is Screenr oEmbed all about?
The Screenr oEmbed allows developers to programatically get the Screenr embed code for any Screenr screencast. If you have the URL to a Screenr screencast you can use it to get the embed code without copying and pasting anything, you simply provide a Screenr URL to our oEmbed API and in return you’ll get the proper embed code.
oEmbed Endpoints
Our oEmbed provides responses in both JSON and XML and can be found at the following URLs.
http://www.screenr.com/api/oembed.json?url=http://www.screenr.com/oXs
http://www.screenr.com/api/oembed.xml?url=http://www.screenr.com/oXs
All you need to do is substitute in the URL of the screencast you need the embed code for.
We also provide discovery of these URLs by providing them on each screencast page, so for example, if your app supports oEmbed it can automatically get the Screenr embed code just by knowing the screencast URL.
Example Response
JSON
{
"type": "video",
"version": "1.0",
"provider_name": "Screenr",
"provider_url": ""http://screenr.com",
"title": "Here’s what your Screenr screencasts look like on an iPhone.",
"author_name": "GetAdam",
"html": "<embed src=...>"
"width": "560",
"height": "345"
}
XML
<?xml version="1.0" encoding="UTF-8"?> <oembed> <type>video</type> <version>1.0</version> <provider_name>Screenr</provider_name> <provider_url>http://Screenr.com/</provider_url> <title>Here’s what your Screenr screencasts look like on an iPhone.</title> <author_name>GetAdam</author_name>
<html><embed src=”...></html>
<width>560</width>
<height>345</height>
</oembed>
It’s as simple as that! If you have any questions about the Screenr oEmbed support, or if you got a cool app or website that uses the Screenr oEmbed we would love to hear about it, so why not let us know about it by shouting at us on Twitter at @Screenr or posting a question on community.screenr.com.
To learn more about oEmbed, check out the spec at http://www.oembed.com/