RecordingStats

public abstract class RecordingStats
extends Object

java.lang.Object
   ↳ androidx.camera.video.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 VideoRecordEvent.getRecordingStats().

Summary

Public methods

abstract AudioStats getAudioStats()

Returns the AudioStats that is associated with this recording stats.

abstract long getNumBytesRecorded()

Returns the number of bytes recorded.

abstract long getRecordedDurationNanos()

Returns current recorded duration in nanoseconds.

Inherited methods

Public methods

getAudioStats

public abstract AudioStats getAudioStats ()

Returns the AudioStats that is associated with this recording stats.

Returns
AudioStats

getNumBytesRecorded

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.

getRecor