View Source

h2. Overview
_Since 4.0_
_Until 4.2_

{warning}As of January of 2017 the BridgeIt project has been [deprecated|http://www.icesoft.org/blog/the-future-of-bridgeit/]. As a result, this component has been removed from ICEfaces as of the 4.2 release.{warning}

The mobi:camcorder component renders a button that launches the Bridgeit application on the user's device to record a video and upload it to the server, storing the video as the value of this component.


h2. Getting Started

To start using the Camcorder component, simply place the mobi:camcorder tag inside a form and bind the value to a backing bean property.
{code:xml}
<h:form>
<mobi:camcorder id="camcorder"
value="#{bean.video}"
buttonLabel="Camcorder"
captureMessageLabel="Video captured"/>
</h:form>
{code}
{code:java}
private Map video = new HashMap();
public void setVideo(Map video) {
this.video = video;
}

public Map getVideo() {
return video;
}
{code}

h2. Attributes

{tip:title=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|http://res.icesoft.org/docs/v4_latest/mobi/tld/].{tip}

{panel}
The *value* attribute must resolve to an object of type {{java.util.Map<String,Object>}} in the backing bean. Once the video is uploaded, this map will contain the following keys: {{'file'}} will be mapped to the {{File}} object representing the video, {{'contentType'}} will be mapped to a string that indicates the content type of the file, and {{'relativePath'}} will be mapped to a string containing the relative path of the file in the server.
{panel}

{panel}
The *buttonLabel* specifies the label of the button before it is activated.
{panel}

{panel}
The *captureMessageLabel* specifies the label to be displayed on the button on a successful video capture.
{panel}

h2. Event Listeners

None.

h2. Client Behavior Events

None.

h2. JavaScript API

None.

h2. Keyboard Support

Standard keyboard actions for HTML buttons are supported, such as tabindex and pressing the enter or space keys to activate the button.

h2. Known Issues

None.

h2. Additional Resources


h4. Sample Applications

This component appears in the following ICEfaces sample applications:

* *[ICEfaces Mobile Showcase|http://icefaces-showcase.icesoft.org/showcase-mobile.jsf]*

h4. Tutorials

This component appears in the following ICEfaces tutorials:

*None*