Builder to construct an Indexable
for a video object.
For reference, see: //schema.org/VideoObject.
Public Method Summary
VideoObjectBuilder | |
VideoObjectBuilder |
setDuration(long durationInSeconds)
Sets the duration of the video object in seconds.
|
VideoObjectBuilder |
setDurationWatched(long durationWatchedInSeconds)
Sets the duration of the video object which the user has already watched in
seconds.
|
VideoObjectBuilder | |
VideoObjectBuilder | |
VideoObjectBuilder |
Inherited Method Summary
Public Methods
public VideoObjectBuilder setAuthor (PersonBuilder author)
Sets the author of the video object.
Parameters
author | The author of the video object. |
---|
public VideoObjectBuilder setDuration (long durationInSeconds)
Sets the duration of the video object in seconds.
Parameters
durationInSeconds | The duration of the video object in seconds. |
---|
public VideoObjectBuilder setDurationWatched (long durationWatchedInSeconds)
Sets the duration of the video object which the user has already watched in seconds.
Parameters
durationWatchedInSeconds | The duration of the video object which the user has already watched in seconds.
The value must be less than or equal to the value used in
setDuration(long) . |
---|
public VideoObjectBuilder setLocationCreated (PlaceBuilder place)
Sets the place where the video was taken.
public VideoObjectBuilder setSeriesName (String seriesName)
Sets the series name this video object belongs to. The name can represent a channel name, a subscription name or a playlist name.
Parameters
seriesName | The series name this video object belongs to. |
---|
public VideoObjectBuilder setUploadDate (Date uploadDate)
Sets the date when this video object was uploaded.
Parameters
uploadDate | The date when this video object was uploaded. |
---|