| Package | Description |
|---|---|
| com.codename1.capture |
Package for capturing photos, audio or video from the camera/microphone.
|
| com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| Modifier and Type | Method and Description |
|---|---|
VideoCaptureConstraints |
VideoCaptureConstraints.Compiler.compile(VideoCaptureConstraints cnst) |
VideoCaptureConstraints |
VideoCaptureConstraints.preferredHeight(int height)
Sets the preferred height constraint.
|
VideoCaptureConstraints |
VideoCaptureConstraints.preferredMaxFileSize(long size)
Sets the preferred max file size.
|
VideoCaptureConstraints |
VideoCaptureConstraints.preferredMaxLength(int maxLength)
Set the preferred max length for the video capture in seconds.
|
VideoCaptureConstraints |
VideoCaptureConstraints.preferredQuality(int quality)
Sets the preferred quality of the video recording.
|
VideoCaptureConstraints |
VideoCaptureConstraints.preferredWidth(int width)
Sets the preferred width constraint.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Capture.captureVideo(VideoCaptureConstraints constraints)
Same as
Capture.captureVideo(com.codename1.capture.VideoCaptureConstraints, com.codename1.ui.events.ActionListener) only a
blocking version that holds the EDT. |
static void |
Capture.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Captures video with some constraints, like width, height, and max length.
|
VideoCaptureConstraints |
VideoCaptureConstraints.Compiler.compile(VideoCaptureConstraints cnst) |
| Constructor and Description |
|---|
VideoCaptureConstraints(VideoCaptureConstraints toCopy)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Captures a video, and notifies with the data when available.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Display.captureVideo(VideoCaptureConstraints constraints,
ActionListener response)
Same as
Display.captureVideo(com.codename1.ui.events.ActionListener), except that it
attempts to impose constraints on the capture. |
Copyright © 2022. All rights reserved.