Commit cbfe5376 authored by ylwu's avatar ylwu

final changes, ready for merging?

parent 4f2d0b73
......@@ -26,11 +26,11 @@ import java.util.Date;
*/
@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 " +
"containing the clip is available as an argument to the " +
"AfterRecording event. The file name can be used, for example, as " +
"the source of a VideoPlayer component.",
"AfterRecording event. The file name can be used, for example, to set " +
"the source property of a VideoPlayer component.",
category = ComponentCategory.MEDIA,
nonVisible = true,
iconName = "images/camcorder.png")
......@@ -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
public void RecordVideo() {
......
......@@ -38,6 +38,11 @@
Media Components
</h1>
<ul>
<li>
<a href="#Camcorder">
Camcorder
</a>
</li>
<li>
<a href="#Camera">
Camera
......@@ -64,6 +69,54 @@
</a>
</li>
</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">
Camera
</h2>
......@@ -624,4 +677,4 @@
</div>
</div>
</body>
</html>
\ No newline at end of file
</html>
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