Table of Contents


Since 4.0

The ace:videoPlayer component renders an HTML5 <video> element.

See the ICEfaces Showcase Live Demo of this component, complete with source code.

Getting Started

To 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"
		type="video/mp4" />


TagLib Documentation
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.

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 Listeners


Client Behavior Events


JavaScript API

Not applicable.

Keyboard Support


CSS Classes

The 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 />

Known Issues

  • The ace:videoPlayer requires HTML5-compliant browser support and IS NOT supported on IE8 or IE9 browsers.

Other Notes

Regarding 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 Resources


This component appears in the following ICEfaces tutorials:


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2021 ICEsoft Technologies Canada Corp.