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 Location object representing the geographic location where the video was recorded.

Constants

DURATION_UNLIMITED

Added in 1.3.0
public static final int DURATION_UNLIMITED = 0

Represents an unlimited duration.

FILE_SIZE_UNLIMITED

Added in 1.1.0
public static final int FILE_SIZE_UNLIMITED = 0

Represents an unbound file size.

Public methods

getDurationLimitMillis

Added in 1.3.0
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 DURATION_UNLIMITED if it's unlimited.

getFileSizeLimit

Added in 1.1.0
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 FILE_SIZE_UNLIMITED if it's unlimited.

getLocation

Added in 1.2.0
public @Nullable Location getLocation()

Returns a Location object representing the geographic location where the video was recorded.

Returns
@Nullable Location

the location object or null if no location was set.

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jun 12, 2024

Learn how to use the sqlite3 command-line program to manage SQLite databases created by Android applications.

Updated Apr 12, 2023

Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.

Updated Apr 12, 2023