Agile Web Development

Build it. Launch it. Love it.

Quicktime Helper

QuicktimeHelper

=========

Jon Maddox jon@jonsthoughtsoneverything.com http://www.simplisticcomplexity.com

The quicktime helper makes use of Geoff Stearns’ qtobject.js to give you a standards compliant way to embed Quicktime in your page. It also provides friendly detection.

After including the ‘qtobject.js’ file in your view, using the quicktime_tag helper is simple:

<%= quicktime_tag(:path_to_video_file, :id, :width, :height, options = {} ) %>

Extra parameters that are used by the quicktime embed object can be added using the options hash. For Example:

<%= quicktime_tag(:path_to_video_file, :id, :width, :height, {:loop => true, :autoplay => false} ) %>

use ‘rake update_quicktime_script’ if the javascript didn’t get placed in /public/javascripts.

qtobject.js was masterfully created by Geoff Stearns http://blog.deconcept.com/2005/01/26/web-standards-compliant-javascript-quicktime-detect-and-embed/

Vitals

Home http://www.simplisticcomplexity.com/2006/9/12/quicktime_helper-plugin
Repository http://code.jtoe.net/rails/plugins/quicktime_helper
License Rails' (MIT)
Rating (4 votes)
Owner Jon Maddox
Created 12 September 2006

Comments

Add a comment