Commit cbfe5376 authored by ylwu's avatar ylwu

final changes, ready for merging?

parent 4f2d0b73
...@@ -26,11 +26,11 @@ import java.util.Date; ...@@ -26,11 +26,11 @@ import java.util.Date;
*/ */
@DesignerComponent(version = YaVersion.CAMCORDER_COMPONENT_VERSION, @DesignerComponent(version = YaVersion.CAMCORDER_COMPONENT_VERSION,
description = "Camcorder is a non-visible component that records a video using the device's camera" + description = "A component to record a video using the device's camcorder." +
"After the video is recorded, the name of the file on the phone " + "After the video is recorded, the name of the file on the phone " +
"containing the clip is available as an argument to the " + "containing the clip is available as an argument to the " +
"AfterRecording event. The file name can be used, for example, as " + "AfterRecording event. The file name can be used, for example, to set " +
"the source of a VideoPlayer component.", "the source property of a VideoPlayer component.",
category = ComponentCategory.MEDIA, category = ComponentCategory.MEDIA,
nonVisible = true, nonVisible = true,
iconName = "images/camcorder.png") iconName = "images/camcorder.png")
...@@ -58,7 +58,7 @@ public class Camcorder extends AndroidNonvisibleComponent ...@@ -58,7 +58,7 @@ public class Camcorder extends AndroidNonvisibleComponent
} }
/** /**
* Opens the phone's camera to allow a video to be recorded. Records a video, then raises the AfterRecoding event. * Records a video, then raises the AfterRecoding event.
*/ */
@SimpleFunction @SimpleFunction
public void RecordVideo() { public void RecordVideo() {
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
Media Components Media Components
</h1> </h1>
<ul> <ul>
<li>
<a href="#Camcorder">
Camcorder
</a>
</li>
<li> <li>
<a href="#Camera"> <a href="#Camera">
Camera Camera
...@@ -64,6 +69,54 @@ ...@@ -64,6 +69,54 @@
</a> </a>
</li> </li>
</ul> </ul>
<h2 id="Camcorder">
Camcorder
</h2>
<img alt="" src="images/camcorder.png" />
<p>
Use a camcorder component to record a video on the phone.
</p>
<p>
Camcorder is a non-visible component that records a video using the device's camera.
After the video is recorded, the path to the file on the phone containing the
video is available as an argument to the AfterRecording event. The path can be
used, for example, to set the source property of an VideoPlayer component.
</p>
<h3>
Properties
</h3>
none
<h3>
Methods
</h3>
<dl>
<dt>
<code>
RecordVideo()
</code>
</dt>
<dd>
Opens the phone's camera to allow a video to be recorded.
</dd>
</dl>
<h3>
Events
</h3>
<dl>
<dt>
<code>
AfterRecording(Text clip)
</code>
</dt>
<dd>
Called after the video is recorded. The text argument
<code>
clip
</code>
is the
path that can be used to locate the video on the phone.
</dd>
</dl>
<h2 id="Camera"> <h2 id="Camera">
Camera Camera
</h2> </h2>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment