|
|
 |
 |
 |
embed Macro
Returns an html fragment needed to ebed a number of audio-visual media document types in a page.
Parameters
- source - url or shortcut (gem or otherwise)
- width - required for quicktime
- height - required for quicktime
- type - one of the mimetypes video/quicktime, application/x-shockwave-flash, image/svg+xml or video/x-ms-asf.
- autoplay (optional) -
- play (optional default true) -
- quality (optional) -
- bgcolor (optional) -
- target (optional) -
- poster (optional) - url or shortcut (gem or otherwise)
- linktext (optional) - a string
Example
{manilaextras.embed(source:"myMovie", width:120, height:120, type:"quicktime", play:false)}
Semantics
- For the type parameter, the abbreviations quicktime, flash and svg are mapped into values video/quicktime, application/x-shockwave-flash, and image/svg+xml respectively.
- Type video/quicktime generates an object and an embed tag, and requires values for width, height, autoplay, controller, poster and source. If specified the embed tag will contain the value of target.
- Type application/x-shockwave-flash generates an object and an embed tag, and requires values for width, height and source. If specified quality and bgcolor are also used. If specified the embed tag will contain the value of target.
- Type image/svg+xml generates an object and an embed tag, and requires values for width, height and source. If specified the embed tag will contain the value of target.
- Type video/x-ms-asf generates an object and an embed tag and a link to play the document an in axternal application; and requires values for width, height, autoplay, controller and source. the link uses linktext.
|