Quicktime          
  
   
 


Embeds a Quicktime player in the page

Parameters

  • id - the id for referencing the player
  • src - the source of the resource to play
  • play - "True" or "False" whether to play the resource immediately (Optional default="True")
  • loop - "True" or "False" whether to play the resource in a loop (Optional default="False")
  • controls - "True" or "False" whether to show the default quicktime controls Optional default="True")

Usage:

[{Quicktime id="movie" src="sample.mp3"}]


renderer.sjsvar id = extension.getAttributeValueByName("id"); var src = extension.getAttributeValueByName("src"); var play = extension.getAttributeValueByName("play"); var loop = extension.getAttributeValueByName("loop"); var controls = extension.getAttributeValueByName("controls"); if(id!=null) { if(controls==null) { controls="True"; } if(loop==null) { loop="False"; } if(play==null) { play="True"; } data = "<OBJECT id=\""+id+"\" CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" "; data += "WIDTH=\"400\"HEIGHT=\"20\" "; data += "CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\">"; data += "<PARAM name=\"SRC\" VALUE=\""+src+"\">"; data += "<PARAM name=\"AUTOPLAY\" VALUE=\""+play+"\">"; data += "<PARAM name=\"CONTROLLER\" VALUE=\""+controls+"\">"; data += "<PARAM name=\"LOOP\" VALUE=\""+loop+"\">"; data += "<EMBED SRC=\""+src+"\" WIDTH=\"400\" HEIGHT=\"20\" AUTOPLAY=\""+play+"\" LOOP=\""+loop+"\" CONTROLLER=\""+controls+"\" EnableJavaScript=\"true\" PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\" NAME=\""+id+"\">"; data += "</EMBED>"; data += "</OBJECT>"; return data; } else { return "Invalid Tag. Missing id attribute."; }
by Anon on 21/04/2008 at 10:09 PM