OverviewSince 4.0 The ace:videoPlayer component renders an HTML5 <video> element.
Getting StartedTo start using the VideoPlayer component it is enough to specify a video resource in the value attribute and the MIME type of such resource in the 'type' attribute. <ace:videoPlayer id="videoPlayer" value="#{bean.resourcePath}" type="video/mp4" /> Attributes
The value attribute specifies a video resource, which can either be a string representing a relative path to the video file in the server, or a byte array that contains the encoded media, or a JSF resource. The controls flag will render the playback controls if set to true. The loop flag will cause the player to keep playing the media repeatedly. The autoplay flag will cause the media to be played at the moment the component is loaded on the page. If muted is set to true, the audio will be muted. The type attribute is used to specify the MIME type of the media file. Event ListenersNone. Client Behavior EventsNone. JavaScript APINot applicable. Keyboard SupportNone. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <span class="mobi-video [user defined classes]" style="[user defined styles]"> <video />> <a /> </span> Known Issues
Other NotesRegarding MIME types, it is known that certain application servers have certain default MIME types that are not supported by some browsers. It is advised to use the most standard MIME types so the videos can be played in all browsers. These are: video/avi, video/mpeg, video/mp4, video/ogg, video/quicktime, video/x-ms-wmv, and video/x-flv. Additional ResourcesTutorialsThis component appears in the following ICEfaces tutorials: None |
VideoPlayer
© Copyright 2021 ICEsoft Technologies Canada Corp.