Quantcast
Channel: Video Cloud Overview Recent
Viewing all articles
Browse latest Browse all 2356

RSS Output from the Media API

$
0
0
-60

This topic describes how you can get the output from the read methods in the Video Cloud Media API in MRSS format, rather than the default JSON output.

Note: the Media API is deprecated. You can also generate MRSS feeds using the newer CMS API, as shown in the these examples:

RSS is short for Really Simple Syndication. RSS is an XML-based language which represents information on the web in a form which may be syndicated (subscribed to) in special news reader applications. RSS allows your news reader program to bring a web site news feed directly to your computer.

MRSS is short for Media Really Simple Syndication. MRSS is an RSS module (originally developed by Yahoo) that is used for syndicating multimedia files (audio, video, image) in RSS feeds. The format can be used for podcasting, which uses the RSS format as a means of delivering content to media-playing devices. Media RSS allows for a much more detailed description of the content to be delivered to the subscriber than is covered by the RSS standard.

Simple MRSS feeds and Media API calls

There are two ways to generate MRSS feeds for your Video Cloud account. The most simple way, described in Publishing Simple MRSS Feeds, is to use a ready-made URL. However, this method has significant limitations:

  • No filtering or ordering: all videos, up to the limit, are returned, always in the same order
  • For security reasons, URLs for the video or specific renditions are not included - this may limit the usability of the feed, especially on mobile devices, where a link for a progressive download or HLS rendition is often needed to play the video directly

A much more robust and flexible way to generate MRSS feeds is to use the Media API, which allows you to avoid these limitations.

MRSS output from read method calls

The default output for the read methods in the Video Cloud Media API is JSON. You can, if you prefer, get the output in XML, using RSS or MRSS. Use the output argument with any of the read methods to specify the format of the output. The valid values of the output argument are:

Note that you do not have to generate MRSS feeds — if you are creating a feed for your own app or a specific syndication partner, consider providing a JSON feed instead. If the feed is going to be processed by some syndication client, JSON is generally easier to work with than the XML provided by MRSS, and also allows you to include some additional video metadata that is not available to MRSS output. Of course, if the partner or client app already has MRSS processing in place, an MRSS feed may be preferred.

For example, to get MRSS output from the search_videos method:

http://api.brightcove.com/services/library
  ?command=search_videos&output=mrss&token=ZY4Ls9Hq6LCBgleGDTaFRDLWWBC8uoXQun0xEEXtlDUHBDPZBCOzbw..

Using search_videos gives you the greatest flexibility in generating your feed, as it allows you to include search terms to determine which videos are included, and also makes it easy to exclude certain videos from the feed. See Using search_videos for more details on using this Media API method.

Inluding links to video files in the feed

If you need to include links to the actual video renditions, you must use a Read token with URL Access. Links to all renditions will be returned, so receiving application is responsible for parsing these to select the best rendition to deliver to the client.

Contents of MRSS output

The MRSS output is in the form of XML. You can read more about the RSS definition at: http://www.rssboard.org/rss-specification. The Media RSS specification is located here: http://www.rssboard.org/media-rss. Video Cloud adds a small extension to RSS. For details, see Video Cloud RSS extension.


Viewing all articles
Browse latest Browse all 2356

Latest Images

Trending Articles



Latest Images