RecordingStats


@AutoValue
public abstract class RecordingStats


A snapshot of statistics about an Recording at a point in time.

Recording stats provide information about a recording such as file size, duration and other useful statistics which may be useful for tracking the state of a recording.

Recording stats are generated for every VideoRecordEvent and can be retrieved via getRecordingStats.

See also
start

Summary

Public methods

abstract @NonNull AudioStats

Returns the AudioStats that is associated with this recording stats.

abstract long

Returns the number of bytes recorded.

abstract long

Returns current recorded duration in nanoseconds.

Public methods

getAudioStats

Added in 1.1.0
public abstract @NonNull AudioStats getAudioStats()

Returns the AudioStats that is associated with this recording stats.

getNumBytesRecorded

Added in 1.1.0
public abstract long getNumBytesRecorded()

Returns the number of bytes recorded.

The number of bytes recorded includes bytes stored for video and for audio, if applicable.

Returns
long

the total number of bytes stored for the recording at the time of these recording stats being generated.

getRecordedDurationNanos

Added in 1.1.0
public abstract long getRecordedDurationNanos()

Returns current recorded duration in nanoseconds.

The duration represents the realtime number of nanoseconds that have transpired since the recording started, excluding intervals where the recording was paused.

Returns
long

the duration, in nanoseconds, of the recording at the time of these recording stats being generated.