The IVA Video API works seamlessly to deliver video to many different players. However, we know that some players have trouble following the redirect of the “cmd= 6” option in our video API. In many cases it is because the developer is not using the proper application URL from step one of the video API. So it often makes sense to stop and check the player requirements for video, or for the developer to simply recheck the application URL as this is the simplest fix for the problem.
If this fails, and the player just cannot follow the redirect to the video, your alternative is to use the option “cmd = 3”. This option, instead of telling our API to redirect to the video, instead returns an XML response with information about the video including the direct video URL. You can then parse the XML and grab the video link to pass directly to the player. (IVA suggests that you do NOT cache the links to these videos as they have an expiration date after which they no longer work.) Using this option will cause a slight delay in getting the video because of the extra steps needed on the server side of your website or application. If you still need to use this option you will create the video API links as described in the documentation except to change “cmd = 6” to “cmd =3”.
cmd=6 - does a 302 redirect to the video. (Recommended option) cmd=3 - returns an XML response that contains the direct link to the CDN. XML Response (cmd=3&fmt=4&videokbrate=750)
The XML returned to the Flash player contains a playlist node that contains request info and videos. Below is an example:
<playlist> <requestinfo> <name>TEST ACCOUNT</name> <contentprovider>Video Detective Network</contentprovider> <customerid>548964</customerid> <maxvideoduration>-1</maxvideoduration> <maxmusicduration>-1</maxmusicduration> maxrate>-1</maxrate> <insertadbeginning>False</insertadbeginning> <insertadending>False</insertadending> <sessionid><![CDATA]></sessionid> <customdata><![CDATA]></customdata> </requestinfo> <video> <advertisement>false</advertisement> <advertisementurl></advertisementurl> <adkeywords></adkeywords> <publishedid>1756</publishedid> <copyright>Universal Studios Home Entertainment</copyright> <title>JAWS</title> <year>1975</year> <url>http://cdnapac.videodetective.net/svideo-mp4-750/mp4/750/7691/323039.mp4?c=009751&r=750&s=323039&d=22&sub=&ref=&fmt=4& e=20120427142626&h=029efa98114469c5df959</url> <photourl>http://content.internetvideoarchive.com/content/photos/7691/1756_008. jpg</photourl> <mediaid>0</mediaid> <streamlengthinseconds>22</streamlengthinseconds> <starttime></starttime> <duration></duration> <clientskip>255</clientskip> </video> </playlist>