VideoPlayer

You are viewing an old version (v. 7) of this page.
The latest version is v. 13, last edited on Dec 11, 2014 (view differences | )
<< View previous version | view page history | view next version >>

Overview

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"
		value="#{bean.resourcePath}"
		type="video/mp4" />

Attributes

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

None.

Client Behavior Events

None.

JavaScript API

None.

Keyboard Support

None.

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

Known Issues

None.

Additional Resources

Tutorials

This component appears in the following ICEfaces tutorials:

None

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

© Copyright 2017 ICEsoft Technologies Canada Corp.