public final class StorageProperty extends Object
getRecorderMaxDurationMs() obtains the maximum duration (in milliseconds) of a recording session.
getRecorderMaxFileSizeBytes() obtains the maximum file size (in bytes) of a recording session.
getRecorderFd() obtains the file descriptor of a file to be written.
getRecorderFile() obtains a file object to be written.
getRecorderPath() obtains the path of an output file to be generated.
SystemCapability.Multimedia#MEDIA| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
StorageProperty.Builder |
Static inner class of
StorageProperty used to create a StorageProperty object. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static FileDescriptor |
FD_INIT |
Indicates the default file descriptor of a file to be written.
|
static File |
FILE_INIT |
Indicates the default file object to be written.
|
static int |
MAX_DURATION_MS_INIT |
Indicates the maximum recording duration.
|
static long |
MAX_FILE_SIZE_BYTES_INIT |
Indicates the maximum file size of a recording session.
|
static String |
PATH_INIT |
Indicates the default path of an output file to be generated.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
FileDescriptor |
getRecorderFd() |
Obtains the file descriptor of a file to be written.
|
File |
getRecorderFile() |
Obtains a file object to be written.
|
int |
getRecorderMaxDurationMs() |
Obtains the maximum recording duration (in milliseconds).
|
long |
getRecorderMaxFileSizeBytes() |
Obtains the maximum file size (in bytes) of a recording session.
|
String |
getRecorderPath() |
Obtains the path of an output file to be generated.
|
public static final FileDescriptor FD_INIT
public static final File FILE_INIT
public static final int MAX_DURATION_MS_INIT
public static final long MAX_FILE_SIZE_BYTES_INIT
public static final String PATH_INIT
public int getRecorderMaxDurationMs()
public long getRecorderMaxFileSizeBytes()
public FileDescriptor getRecorderFd()
FileDescriptor instance.public File getRecorderFile()
File instance.public String getRecorderPath()