Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails plugin that will help you embed quicktime content

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 tasks
Octocat-spinner-32 README
Octocat-spinner-32 init.rb
Octocat-spinner-32 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.