OutputOptions
public abstract class OutputOptions
FileDescriptorOutputOptions |
A class providing options for storing the result to a given file descriptor. |
FileOutputOptions |
A class providing options for storing the result to a given file. |
MediaStoreOutputOptions |
A class providing options for storing output to MediaStore. |
Options for configuring output destination for generating a recording.
A PendingRecording can be generated with prepareRecording for different types of output destination, such as FileOutputOptions, FileDescriptorOutputOptions and MediaStoreOutputOptions.
Summary
Constants |
|
|---|---|
static final int |
Represents an unlimited duration. |
static final int |
Represents an unbound file size. |
Public methods |
|
|---|---|
@IntRange(from = 0) long |
Gets the limit for the video duration in milliseconds. |
@IntRange(from = 0) long |
Gets the limit for the file size in bytes. |
@Nullable Location |
Returns a |
Constants
DURATION_UNLIMITED
public static final int DURATION_UNLIMITED = 0
Represents an unlimited duration.
FILE_SIZE_UNLIMITED
public static final int FILE_SIZE_UNLIMITED = 0
Represents an unbound file size.
Public methods
getDurationLimitMillis
public @IntRange(from = 0) long getDurationLimitMillis()
Gets the limit for the video duration in milliseconds.
| Returns | |
|---|---|
@IntRange(from = 0) long |
the video duration limit in milliseconds or |
getFileSizeLimit
public @IntRange(from = 0) long getFileSizeLimit()
Gets the limit for the file size in bytes.
| Returns | |
|---|---|
@IntRange(from = 0) long |
the file size limit in bytes or |