| Package | Description |
|---|---|
| com.codename1.capture |
Package for capturing photos, audio or video from the camera/microphone.
|
| com.codename1.components |
Generic elaborate components that make use of both UI elements and storage.
|
| 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.media |
Video and Audio playback support are handled within this package using the
Media & MediaManager APIs. |
| 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 |
|---|---|
static String |
Capture.captureAudio(MediaRecorderBuilder recordingOptions)
Capture the audio, blocking version that holds the EDT; alternatively you can use the Media API.
|
static void |
Capture.captureAudio(MediaRecorderBuilder recorderOptions,
ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
| Constructor and Description |
|---|
AudioRecorderComponent(MediaRecorderBuilder builder)
Creates a new audio recorder for the settings specified by the given builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodenameOneImplementation.captureAudio(MediaRecorderBuilder recordingOptions,
ActionListener response)
Captures a audio and notifies with the raw data when available
|
Media |
CodenameOneImplementation.createMediaRecorder(MediaRecorderBuilder builder)
Creates a Media recorder Object which will record from the device mic to
a file in the given path.
|
| Modifier and Type | Method and Description |
|---|---|
MediaRecorderBuilder |
MediaRecorderBuilder.audioChannels(int numChannels)
Set the number of audio channels in the media recorder.
|
MediaRecorderBuilder |
MediaRecorderBuilder.bitRate(int bitRate)
Sets the bit rate for the recorder.
|
MediaRecorderBuilder |
MediaRecorderBuilder.mimeType(String mimeType)
Sets the mimetype to use for encoding the audio file.
|
MediaRecorderBuilder |
MediaRecorderBuilder.path(String path)
Sets the output path where the audio recording should be saved.
|
MediaRecorderBuilder |
MediaRecorderBuilder.redirectToAudioBuffer(boolean redirect)
Set this flag to true to redirect the microphone input to an audio buffer.
|
MediaRecorderBuilder |
MediaRecorderBuilder.samplingRate(int samplingRate)
Sets the sampling rate for the recorder.
|
| Modifier and Type | Method and Description |
|---|---|
static Media |
MediaManager.createMediaRecorder(MediaRecorderBuilder builder)
Creates a Media recorder Object which will record from the device mic to
a file in the given path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Display.captureAudio(MediaRecorderBuilder recordingOptions,
ActionListener response)
This method tries to invoke the device native hardware to capture audio.
|
Media |
Display.createMediaRecorder(MediaRecorderBuilder builder)
Deprecated.
use MediaRecorderBuilder#build()
|
Copyright © 2021. All rights reserved.