public class RecorderProfile extends Object
SystemCapability.Multimedia#MEDIA| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
aBitRate |
Indicates the audio bit rate.
|
int |
aChannels |
Indicates the number of audio channels.
|
int |
aCodec |
Indicates the audio encoding format.
|
int |
aSampleRate |
Indicates the audio sampling rate.
|
int |
durationTime |
Indicates the default recording duration.
|
int |
fileFormat |
Indicates the output file format.
|
static int |
QUALITY_LEVEL_1080P |
Indicates the 1080p resolution.
|
static int |
QUALITY_LEVEL_2160P |
Indicates the 2160p resolution.
|
static int |
QUALITY_LEVEL_2K |
Indicates the 2K resolution.
|
static int |
QUALITY_LEVEL_480P |
Indicates the 480p resolution.
|
static int |
QUALITY_LEVEL_4KDCI |
Indicates the DCI 4K resolution.
|
static int |
QUALITY_LEVEL_720P |
Indicates the 720p resolution.
|
static int |
QUALITY_LEVEL_CIF |
Indicates the Common Interchange Format (CIF) resolution.
|
static int |
QUALITY_LEVEL_HIGH |
Indicates the highest video quality.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_1080P |
Indicates the 1080p resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_2160P |
Indicates the 2160p resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_480P |
Indicates the 480p resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_4KDCI |
Indicates the DCI 4K resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_720P |
Indicates the 720p resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_CIF |
Indicates the CIF resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_HIGH |
Indicates the highest video quality for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_LOW |
Indicates the lowest video quality for high-speed photography.
|
static int |
QUALITY_LEVEL_HIGH_SPEED_VGA |
Indicates the VGA resolution for high-speed photography.
|
static int |
QUALITY_LEVEL_LOW |
Indicates the lowest video quality.
|
static int |
QUALITY_LEVEL_QCIF |
Indicates the Quarter Common Intermediate Format (QCIF) resolution.
|
static int |
QUALITY_LEVEL_QHD |
Indicates the Quad high-definition (QHD) resolution.
|
static int |
QUALITY_LEVEL_QVGA |
Indicates the Quarter Video Graphics Array (QVGA) resolution.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_1080P |
Indicates the 1080p resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_2160P |
Indicates the 2160p resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_2K |
Indicates the 2K resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_480P |
Indicates the 480p resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_4KDCI |
Indicates the DCI 4K resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_720P |
Indicates the 720p resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_CIF |
Indicates the CIF resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_HIGH |
Indicates the highest video quality for time-lapse photography.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_LOW |
Indicates the lowest video quality for time-lapse photography.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_QCIF |
Indicates the QCIF resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_QHD |
Indicates the QHD resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_QVGA |
Indicates the QVGA resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_TIME_LAPSE_VGA |
Indicates the VGA resolution for time-lapse video recording.
|
static int |
QUALITY_LEVEL_VGA |
Indicates the Video Graphics Array (VGA) resolution.
|
int |
qualityLevel |
Indicates the video quality.
|
int |
vBitRate |
Indicates the video bit rate.
|
int |
vCodec |
Indicates the video encoding format.
|
int |
vFrameHeight |
Indicates the video height.
|
int |
vFrameRate |
Indicates the video frame rate.
|
int |
vFrameWidth |
Indicates the video width.
|
| 构造器 | 说明 |
|---|---|
RecorderProfile(int qualityLevel,
int durationTime,
int fileFormat,
int aCodec,
int aBitRate,
int aSampleRate,
int aChannels,
int vCodec,
int vFrameRate,
int vHeight,
int vWidth,
int vBitRate) |
A constructor used to create a
RecorderProfile instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static RecorderProfile |
getParameter(String cameraId,
int qualityLevel) |
Obtains the profile of the codec used for a specified camera and video quality.
|
static boolean |
isProfile(int cameraId,
int qualityLevel) |
Checks if there is a profile of the codec used for a specified camera and video quality.
|
public static final int QUALITY_LEVEL_1080P
public static final int QUALITY_LEVEL_2160P
public static final int QUALITY_LEVEL_2K
public static final int QUALITY_LEVEL_480P
public static final int QUALITY_LEVEL_4KDCI
public static final int QUALITY_LEVEL_720P
public static final int QUALITY_LEVEL_CIF
public static final int QUALITY_LEVEL_HIGH
public static final int QUALITY_LEVEL_HIGH_SPEED_1080P
public static final int QUALITY_LEVEL_HIGH_SPEED_2160P
public static final int QUALITY_LEVEL_HIGH_SPEED_480P
public static final int QUALITY_LEVEL_HIGH_SPEED_4KDCI
public static final int QUALITY_LEVEL_HIGH_SPEED_720P
public static final int QUALITY_LEVEL_HIGH_SPEED_CIF
public static final int QUALITY_LEVEL_HIGH_SPEED_HIGH
public static final int QUALITY_LEVEL_HIGH_SPEED_LOW
public static final int QUALITY_LEVEL_HIGH_SPEED_VGA
public static final int QUALITY_LEVEL_LOW
public static final int QUALITY_LEVEL_QCIF
public static final int QUALITY_LEVEL_QHD
public static final int QUALITY_LEVEL_QVGA
public static final int QUALITY_LEVEL_TIME_LAPSE_1080P
public static final int QUALITY_LEVEL_TIME_LAPSE_2160P
public static final int QUALITY_LEVEL_TIME_LAPSE_2K
public static final int QUALITY_LEVEL_TIME_LAPSE_480P
public static final int QUALITY_LEVEL_TIME_LAPSE_4KDCI
public static final int QUALITY_LEVEL_TIME_LAPSE_720P
public static final int QUALITY_LEVEL_TIME_LAPSE_CIF
public static final int QUALITY_LEVEL_TIME_LAPSE_HIGH
public static final int QUALITY_LEVEL_TIME_LAPSE_LOW
public static final int QUALITY_LEVEL_TIME_LAPSE_QCIF
public static final int QUALITY_LEVEL_TIME_LAPSE_QHD
public static final int QUALITY_LEVEL_TIME_LAPSE_QVGA
public static final int QUALITY_LEVEL_TIME_LAPSE_VGA
public static final int QUALITY_LEVEL_VGA
public int aBitRate
public int aChannels
public int aCodec
public int aSampleRate
public int durationTime
public int fileFormat
public int qualityLevel
public int vBitRate
public int vCodec
public int vFrameHeight
public int vFrameRate
public int vFrameWidth
public RecorderProfile(int qualityLevel,
int durationTime,
int fileFormat,
int aCodec,
int aBitRate,
int aSampleRate,
int aChannels,
int vCodec,
int vFrameRate,
int vHeight,
int vWidth,
int vBitRate)
RecorderProfile instance.qualityLevel - Indicates the video quality.durationTime - Indicates the default recording duration.fileFormat - Indicates the output file format.aCodec - Indicates the audio codec.aBitRate - Indicates the audio bit rate.aSampleRate - Indicates the audio sampling rate.aChannels - Indicates the number of audio channels.vCodec - Indicates the video codec.vFrameRate - Indicates the video frame rate.vHeight - Indicates the video height.vWidth - Indicates the video width.vBitRate - Indicates the video bit rate.public static RecorderProfile getParameter(String cameraId, int qualityLevel)
cameraId - Indicates the camera ID.qualityLevel - Indicates video quality.public static boolean isProfile(int cameraId,
int qualityLevel)
cameraId - Indicates the camera ID.qualityLevel - Indicates video quality.true if it exists; returns false otherwise.