Try it out.
Encoding and storage | Content management | User-generated content | Web Services API | Network of CDNs | About us


Web Services API

How do I use these Web Services to display and play content on a site?

First, you need to have a VISUALPLANT account (sign up here) and live content in your VISUALPLANT library (login, upload and publish here).

Then, use the Web Services requests with your passkey to load data from your VISUALPLANT account into your own template engine and display at your Internet venue.

In this example, a news article page is displayed on a sample site with a dynamic list of related videos on the right side. To accomplish this, you can pass tags from your article to the VISUALPLANT Web Service for SEARCH. If "Sony" is a tag from your article, pass it as follows:

GET: http://webservices.visualplant.net/Core/Search/XML/passkey/All/Sony

Should there be no matching items in your library for a given tag, you may want to program a back-up condition. For instance, if "Sony" returns no results in the response, then show a short list of the most viewed titles in the last 24 hours.

GET: http://webservices.visualplant.net/Core/TopWork/XML/passkey/Top100

To play content on your site:

  1. Download the VISUALPLANT Flash Player, unzip it and place it on your web server.
  2. Place the following EMBED code on a page of your site:

    <embed allowFullScreen="true" src="flvplayer.swf" align="left" width="640" height="480"
    bgcolor="#FFFFFF" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    flashvars="file=playlist.xml&showdigits=true&autostart=true&shuffle=false&showfsbutton=true&share=no" />

    "flvplayer.swf" should call to the path of the VISUALPLANT Flash Player.

    "playlist.xml" should be replaced with the results of a VISUALPLANT Web Services request for title or playlist.*

    Title:

    GET: http://webservices.visualplant.net/Core/Title/XSPF/passkey/title id

    Playlist, category, search query list, etc:

    GET: http://webservices.visualplant.net/Core/Search/XSPF/passkey/Playlist/playlist name

    *Important: Replacing playlist.xml with a direct call to a VP Web Service will break cross-domain Flash security rules, so you will need to "tunnel" external feeds to be processed on your server first, then fed to the player. Contact VP Support if this is unclear.

To display metadata (such as descriptions and credits) about titles on the same page with the Player, you will combine XML requests with XSPF requests in your template engine.

Pull basic metadata on a title: (XML)

GET: http://webservices.visualplant.net/Core/Title/XML/passkey/title id

Play the title in the Player: (XSPF)

GET: http://webservices.visualplant.net/Core/Title/XSPF/passkey/title id

Pull extended metadata on a title: (XML)
Show a credits for a title:

http://webservices.visualplant.net/Core/Credits/XML/passkey/unique title id

Show comments for a title:

http://webservices.visualplant.net/Core/Comments/XML/passkey/unique title id



Who We Are | Product Overview | Technology | Partners | Privacy Policy | Admin Login | Contact Us | Support