VideoClipEntity


public final class VideoClipEntity extends Entity


An object representing a video created/uploaded by a user or an organization.

Summary

Nested types

public final class VideoClipEntity.Builder

Builder class for VideoClipEntity.

Public fields

final long
final String
final long
final Uri

Public methods

List<DisplayTimeWindow>

Returns the availability time windows of the video entity.

long

Returns the creation time of the video, in milliseconds from Epoch.

String

Returns the creator of the video.

Optional<Image>

Returns the avatar creator of the video.

long

Returns the duration of the video, in milliseconds.

Optional<String>

Returns the id of the entity.

Optional<Long>

Returns the last engagement time in milliseconds.

Optional<Long>

Returns last play back position of the video entity, in milliseconds.

String

Returns the name of the entity.

List<PlatformSpecificUri>

Returns the platform specific playback uris for the video clip entity.

Uri

Returns the on device deeplink to start playing the video.

List<Image>

Returns the poster image of the entity.

Optional<String>

Returns the view count of the video.

Optional<Integer>

Returns watch next type of the video entity.

boolean

Returns whether the video clip is downloaded on device or not

Public fields

createdTimeEpochMillis

public final long createdTimeEpochMillis

creator

public final String creator

durationMillis

public final long durationMillis

playBackUri

public final Uri playBackUri

Public methods

getAvailabilityTimeWindows

public List<DisplayTimeWindowgetAvailabilityTimeWindows()

Returns the availability time windows of the video entity.

getCreatedTimeEpochMillis

public long getCreatedTimeEpochMillis()

Returns the creation time of the video, in milliseconds from Epoch.

getCreator

public String getCreator()

Returns the creator of the video.

getCreatorImage

public Optional<ImagegetCreatorImage()

Returns the avatar creator of the video.

getDurationMillis

public long getDurationMillis()

Returns the duration of the video, in milliseconds.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getLastEngagementTimeMillis

public Optional<LonggetLastEngagementTimeMillis()

Returns the last engagement time in milliseconds.

getLastPlayBackPositionTimeMillis

public Optional<LonggetLastPlayBackPositionTimeMillis()

Returns last play back position of the video entity, in milliseconds.

getName

public String getName()

Returns the name of the entity.

getPlatformSpecificPlaybackUris

public List<PlatformSpecificUrigetPlatformSpecificPlaybackUris()

Returns the platform specific playback uris for the video clip entity.

getPlayBackUri

public Uri getPlayBackUri()

Returns the on device deeplink to start playing the video.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getViewCount

public Optional<StringgetViewCount()

Returns the view count of the video.

getWatchNextType

public Optional<IntegergetWatchNextType()

Returns watch next type of the video entity.

isDownloadedOnDevice

public boolean isDownloadedOnDevice()

Returns whether the video clip is downloaded on device or not