RecordingStats
@AutoValue
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 functions |
|
|---|---|
abstract AudioStats |
Returns the |
abstract Long |
Returns the number of bytes recorded. |
abstract Long |
Returns current recorded duration in nanoseconds. |
Public functions
getAudioStats
abstract fun getAudioStats(): AudioStats
Returns the AudioStats that is associated with this recording stats.
getNumBytesRecorded
abstract fun getNumBytesRecorded(): Long
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
abstract fun getRecordedDurationNanos(): Long
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. |