public static class VideoMetadata.Builder extends MediaMetadata.Builder
VideoMetadata
.Modifier and Type | Field and Description |
---|---|
protected Long |
duration |
dimensions, location, timeTaken
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
VideoMetadata |
build()
Builds an instance of
VideoMetadata configured with this
builder's values |
VideoMetadata.Builder |
withDimensions(Dimensions dimensions)
Set value for optional field.
|
VideoMetadata.Builder |
withDuration(Long duration)
Set value for optional field.
|
VideoMetadata.Builder |
withLocation(GpsCoordinates location)
Set value for optional field.
|
VideoMetadata.Builder |
withTimeTaken(Date timeTaken)
Set value for optional field.
|
protected Long duration
public VideoMetadata.Builder withDuration(Long duration)
duration
- The duration of the video in milliseconds.public VideoMetadata.Builder withDimensions(Dimensions dimensions)
withDimensions
in class MediaMetadata.Builder
dimensions
- Dimension of the photo/video.public VideoMetadata.Builder withLocation(GpsCoordinates location)
withLocation
in class MediaMetadata.Builder
location
- The GPS coordinate of the photo/video.public VideoMetadata.Builder withTimeTaken(Date timeTaken)
withTimeTaken
in class MediaMetadata.Builder
timeTaken
- The timestamp when the photo/video is taken.public VideoMetadata build()
VideoMetadata
configured with this
builder's valuesbuild
in class MediaMetadata.Builder
VideoMetadata