Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
cbfe5376
Commit
cbfe5376
authored
Jul 16, 2012
by
ylwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final changes, ready for merging?
parent
4f2d0b73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
5 deletions
+58
-5
appinventor/components/src/com/google/appinventor/components/runtime/Camcorder.java
.../com/google/appinventor/components/runtime/Camcorder.java
+4
-4
appinventor/docs/learn/reference/components/media.html
appinventor/docs/learn/reference/components/media.html
+54
-1
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/Camcorder.java
View file @
cbfe5376
...
@@ -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
()
{
...
...
appinventor/docs/learn/reference/components/media.html
View file @
cbfe5376
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment