Skip to content
Rails plugin that will help you embed quicktime content
JavaScript Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
public/javascripts
tasks
README
init.rb
install.rb

README

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 = {} ) %>

You can also use a placeholder image by adding :placeholder to the options hash. Pass in a path to an image and you're 
Quicktime video will be preceded with a placeholder image, click it to start the movie. You know, just like Apple Trailers.

<%= quicktime_tag(:path_to_video_file, :id, :width, :height, {:placeholder => "/images/click-to-play.gif", :loop => true, :autoplay => false} ) %>



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/
Something went wrong with that request. Please try again.