Revver Developer Center: Media : Qt

Revver Developer Center



Introduction

All videos uploaded to Revver are transcoded to Apple's QuickTime format for podcasts and to facillitate the viral distribution of content via P2P sharing networks or email.

Requirements

Apple QuickTime Player

Player Parameters

The QuickTime player accepts all the standard parameters a normal QuickTime embed would accept. For and up-to-date- list of all the options available to QuickTime embeds, please visit Apple's QuickTime page at: http://docs.info.apple.com/article.html?artnum=61011

Embed

Revver.com includes two standard embed options for the flash player -- one using JavaScript and another using the deprecated HTML <embed> tag.

<embed type="application/x-shockwave-flash" src="http://flash.revver.com/player/1.0/player.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noScale" salign="TL" bgcolor="#000000" flashvars="mediaId=INT&affiliateId=INT&allowFullScreen=true" allowfullscreen="true" height="392" width="480"></embed>

Simple JavaScript Embed

When a mediaId is included as a query string on the js call, a flash embed is created inline on the page -- allowing for multiple embeds on a page using the below notation.

<script src="http://media.revver.com/player/1.0/qtplayer.js?PARAM:VALUE" type="text/javascript"></script>

Note: The JavaScript embed inserts the standard thumbnail / poster frame (chosen on Revver.com), as a clickable image that then loads the QuickTime file. This prevents multiple embeds from downloading the movie contents upon page load.

Advanced JavaScript Embed

If a mediaId is not included in the query string on the original JS call, a method call must be used to create the embed. Additionally, the JS includes additional parameters that can be used in complex AJAX environments.

<!-- in HEAD of document -->
<script src="http://media.revver.com/player/1.0/qtplayer.js" type="text/javascript"></script>

<script type="text/javascript">
/* <![CDATA[ */
   revverQVideo.embed ( {mediaId : INT, affiliateId : INT} );
/* ]]> */
</script>

Additional Parameters

divIdid of divOptional
Replaces out the contents of the div with the id specified

Those interested in an alternative may find the great work of Geoff Stearns (maker of SWFObject) useful: http://blog.deconcept.com/code/qtobject/qtobject.html

Standard Embed

The standard embed is typically used in social networking sites where the proper object tag is removed for security considerations.

<embed type="video/quicktime" src="http://media.revver.com/qt;sharer=INT/MEDIAID.mov" pluginspage="http://www.apple.com/quicktime/download/" scale="aspect" cache="False" height="376" width="480" autoplay="False"></embed>