-
public final class Videos
-
-
Method Summary
Modifier and Type Method Description final static ImageRequest.BuildervideoFrameMillis(ImageRequest.Builder $self, Long frameMillis)Set the time in milliseconds of the frame to extract from a video. final static ImageRequest.BuildervideoFrameMicros(ImageRequest.Builder $self, Long frameMicros)Set the time in microseconds of the frame to extract from a video. final static LongvideoFrameMicros(Parameters $self)Get the time in microseconds of the frame to extract from a video. final static ImageRequest.BuildervideoFramePercent(ImageRequest.Builder $self, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Double framePercent)Set the time as a percentage of the total duration for the frame to extract from a video. final static DoublevideoFramePercent(Parameters $self)Get the time as a percentage of the total duration for the frame to extract from a video. final static ImageRequest.BuildervideoFrameOption(ImageRequest.Builder $self, Integer option)Set the option for how to decode the video frame. final static IntegervideoFrameOption(Parameters $self)Get the option for how to decode the video frame. -
-
Method Detail
-
videoFrameMillis
final static ImageRequest.Builder videoFrameMillis(ImageRequest.Builder $self, Long frameMillis)
Set the time in milliseconds of the frame to extract from a video.
When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.
Default: 0
-
videoFrameMicros
final static ImageRequest.Builder videoFrameMicros(ImageRequest.Builder $self, Long frameMicros)
Set the time in microseconds of the frame to extract from a video.
When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.
Default: 0
-
videoFrameMicros
final static Long videoFrameMicros(Parameters $self)
Get the time in microseconds of the frame to extract from a video.
-
videoFramePercent
final static ImageRequest.Builder videoFramePercent(ImageRequest.Builder $self, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Double framePercent)
Set the time as a percentage of the total duration for the frame to extract from a video.
When both videoFrameMicros (or videoFrameMillis) and videoFramePercent are set, videoFrameMicros (or videoFrameMillis) will take precedence.
Default: 0.0
-
videoFramePercent
final static Double videoFramePercent(Parameters $self)
Get the time as a percentage of the total duration for the frame to extract from a video.
-
videoFrameOption
final static ImageRequest.Builder videoFrameOption(ImageRequest.Builder $self, Integer option)
Set the option for how to decode the video frame.
Must be one of OPTION_PREVIOUS_SYNC, OPTION_NEXT_SYNC, OPTION_CLOSEST_SYNC, OPTION_CLOSEST.
Default: OPTION_CLOSEST_SYNC
-
videoFrameOption
final static Integer videoFrameOption(Parameters $self)
Get the option for how to decode the video frame.
-
-
-
-