OutputOptions
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
Public functions |
|
|---|---|
@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. |
Location? |
Returns a |
Constants
DURATION_UNLIMITED
const val DURATION_UNLIMITED = 0: Int
Represents an unlimited duration.
FILE_SIZE_UNLIMITED
const val FILE_SIZE_UNLIMITED = 0: Int
Represents an unbound file size.
Public functions
getDurationLimitMillis
fun getDurationLimitMillis(): @IntRange(from = 0) Long
Gets the limit for the video duration in milliseconds.
| Returns | |
|---|---|
@IntRange(from = 0) Long |
the video duration limit in milliseconds or |
getFileSizeLimit
fun getFileSizeLimit(): @IntRange(from = 0) Long
Gets the limit for the file size in bytes.
| Returns | |
|---|---|
@IntRange(from = 0) Long |
the file size limit in bytes or |
getLocation
fun getLocation(): Location?
Returns a Location object representing the geographic location where the video was recorded.
| Returns | |
|---|---|
Location? |
the location object or |