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:
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.
To play content on your site:
- Download the VISUALPLANT Flash Player, unzip it and place it on your web server.
- 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 idPlaylist, 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.
Pull basic metadata on a title: (XML)
Play the title in the Player: (XSPF)
Pull extended metadata on a title: (XML)
Show a credits for a title:
Show comments for a title:
