-
public class VideoResultWraps the result of a video recording started by takeVideo.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoResult.StubA result stub, for internal use only.
-
Field Summary
Fields Modifier and Type Field Description public final static intREASON_USERpublic final static intREASON_MAX_SIZE_REACHEDpublic final static intREASON_MAX_DURATION_REACHEDprivate final booleanisSnapshotprivate final Locationlocationprivate final introtationprivate final Sizesizeprivate final Filefileprivate final FileDescriptorfileDescriptorprivate final Facingfacingprivate final VideoCodecvideoCodecprivate final AudioCodecaudioCodecprivate final Audioaudioprivate final longmaxSizeprivate final intmaxDurationprivate final intvideoBitRateprivate final intvideoFrameRateprivate final intaudioBitRate
-
Method Summary
Modifier and Type Method Description booleanisSnapshot()Returns whether this result comes from a snapshot. LocationgetLocation()Returns geographic information for this video, if any.If it was set, it is also present in the file metadata. intgetRotation()Returns the clock-wise rotation that should be applied to thevideo frames before displaying. SizegetSize()Returns the size of the frames after the rotation is applied. FilegetFile()Returns the file where the video was saved. FileDescriptorgetFileDescriptor()Returns the file descriptor where the video was saved. FacinggetFacing()Returns the facing value with which this video was recorded. VideoCodecgetVideoCodec()Returns the codec that was used to encode the video frames. AudioCodecgetAudioCodec()Returns the codec that was used to encode the audio frames. AudiogetAudio()Returns the Audio setting for this video. longgetMaxSize()Returns the max file size in bytes that was set before recording,or 0 if no constraint was set. intgetMaxDuration()Returns the max video duration in milliseconds that was set before recording,or 0 if no constraint was set. intgetVideoBitRate()Returns the bit rate used for video encoding. intgetVideoFrameRate()Returns the frame rate used for video encodingin frames per second. intgetAudioBitRate()Returns the bit rate used for audio encoding. intgetTerminationReason()Returns the reason why the recording was stopped. -
-
Method Detail
-
isSnapshot
boolean isSnapshot()
Returns whether this result comes from a snapshot.
-
getLocation
@Nullable() Location getLocation()
Returns geographic information for this video, if any.If it was set, it is also present in the file metadata.
-
getRotation
int getRotation()
Returns the clock-wise rotation that should be applied to thevideo frames before displaying. If it is non-zero, it is also presentin the video metadata, so most reader will take care of it.
-
getFileDescriptor
@NonNull() FileDescriptor getFileDescriptor()
Returns the file descriptor where the video was saved.
-
getFacing
@NonNull() Facing getFacing()
Returns the facing value with which this video was recorded.
-
getVideoCodec
@NonNull() VideoCodec getVideoCodec()
Returns the codec that was used to encode the video frames.
-
getAudioCodec
@NonNull() AudioCodec getAudioCodec()
Returns the codec that was used to encode the audio frames.
-
getMaxSize
long getMaxSize()
Returns the max file size in bytes that was set before recording,or 0 if no constraint was set.
-
getMaxDuration
int getMaxDuration()
Returns the max video duration in milliseconds that was set before recording,or 0 if no constraint was set.
-
getVideoBitRate
int getVideoBitRate()
Returns the bit rate used for video encoding.
-
getVideoFrameRate
int getVideoFrameRate()
Returns the frame rate used for video encodingin frames per second.
-
getAudioBitRate
int getAudioBitRate()
Returns the bit rate used for audio encoding.
-
getTerminationReason
int getTerminationReason()
Returns the reason why the recording was stopped.
-
-
-
-