Project Documentation
Foundation

Description

The media component can be used for displaying media content such as audio, video, or image in a player embedded in the user agent.

Screen Shot

NA

API

author Hazem Ahmed Saleh
component-family org.apache.myfaces.media
renderer-type org.apache.myfaces.media
component-class org.apache.myfaces.custom.media.MediaComponent
renderer-class org.apache.myfaces.custom.media.MediaRenderer
tag-class org.apache.myfaces.custom.media.MediaTag

Usage


                <s:media [id="media"] 
                            [source="#{facesContext.externalContext.requestContextPath}/images/clock.avi"]
                            [contentType="application/x-mplayer2"] 
                            [width="300"]
                            [height="300"]                                  
                </s:media>

            

Instructions

id - defines the id of the component.
source - determines the path of the media file.
contentType - determines the media content type.
width - determines the media width.
height - determines the media height.

Additional Information

see media.jsp in the Sandbox examples.