Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:ICEfaces with a media file
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
Description
It should be straightforward to embed movies, flash, etc. into ICEfaces pages.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
<ice:outputMedia value="#
{bean.mediaURL}" width="int" height="int"
controller="bool" autoplay="bool" type="mime-type-String" />
The outputMedia component can use the type to produce the correct
HTML for the particular piece of embedded media. Note that this
HTML is not simple in the cross-browser case:
http://www.alistapart.com/articles/byebyeembed
If the type is not present, it can be guessed from the extension of the value attribute.
Show
Ted Goddard
added a comment -
<ice:outputMedia value="#
{bean.mediaURL}
" width="int" height="int"
controller="bool" autoplay="bool" type="mime-type-String" />
The outputMedia component can use the type to produce the correct
HTML for the particular piece of embedded media. Note that this
HTML is not simple in the cross-browser case:
http://www.alistapart.com/articles/byebyeembed
If the type is not present, it can be guessed from the extension of the value attribute.
Figured out. Here is what works for both IE and Firefox:
<ice:outputMedia>
<f:param name="src" value="svgfilename.svg"/>
<f:param name="type" value="image/svg+xml"/>
<f:param name="height" value="300"/>
<f:param name="width" value="900"/>
<f:param name="pluginspage" value="http://www.adobe.com/svg/viewer/install/"/>
</ice:outputMedia>