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.sjs
var 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 = "";
return data;
}
else
{
return "Invalid Tag. Missing id attribute.";
}