# VideoClipEntity

# VideoClipEntity

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity "View this page in Kotlin")\|Java  

<br />

```
public final class VideoClipEntity extends Entity
```

<br />

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                    |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity)                    ||
|   | ↳ | [com.google.android.engage.video.datamodel.VideoClipEntity](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity) |

*** ** * ** ***

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

## Summary

|                                                                                                                                         ### Nested types                                                                                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[VideoClipEntity.Builder](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity.Builder) Builder class for[VideoClipEntity](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity). |

|                                ### Public fields                                |
|---------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final long`                                                                    | [createdTimeEpochMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#createdTimeEpochMillis()) |
| `final `[String](https://developer.android.com/reference/java/lang/String.html) | [creator](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#creator())                               |
| `final long`                                                                    | [durationMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#durationMillis())                 |
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html)     | [playBackUri](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#playBackUri())                       |

|                                                                                           ### Public methods                                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>`     | [getAvailabilityTimeWindows](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getAvailabilityTimeWindows())`()` Returns the availability time windows of the video entity.                          |
| `long`                                                                                                                                                                                                 | [getCreatedTimeEpochMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getCreatedTimeEpochMillis())`()` Returns the creation time of the video, in milliseconds from Epoch.                   |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                | [getCreator](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getCreator())`()` Returns the creator of the video.                                                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`       | [getCreatorImage](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getCreatorImage())`()` Returns the avatar creator of the video.                                                                  |
| `long`                                                                                                                                                                                                 | [getDurationMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getDurationMillis())`()` Returns the duration of the video, in milliseconds.                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                 | [getEntityId](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getEntityId())`()` Returns the id of the entity.                                                                                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://developer.android.com/reference/java/lang/Long.html)`>`                                     | [getLastEngagementTimeMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds.                                 |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Long](https://developer.android.com/reference/java/lang/Long.html)`>`                                     | [getLastPlayBackPositionTimeMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getLastPlayBackPositionTimeMillis())`()` Returns last play back position of the video entity, in milliseconds. |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                | [getName](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getName())`()` Returns the name of the entity.                                                                                           |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[PlatformSpecificUri](https://developer.android.com/reference/com/google/android/engage/common/datamodel/PlatformSpecificUri)`>` | [getPlatformSpecificPlaybackUris](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getPlatformSpecificPlaybackUris())`()` Returns the platform specific playback uris for the video clip entity.    |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                    | [getPlayBackUri](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getPlayBackUri())`()` Returns the on device deeplink to start playing the video.                                                  |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                             | [getPosterImages](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                 | [getViewCount](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getViewCount())`()` Returns the view count of the video.                                                                            |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`>`                               | [getWatchNextType](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#getWatchNextType())`()` Returns watch next type of the video entity.                                                            |
| `boolean`                                                                                                                                                                                              | [isDownloadedOnDevice](https://developer.android.com/reference/com/google/android/engage/video/datamodel/VideoClipEntity#isDownloadedOnDevice())`()` Returns whether the video clip is downloaded on device or not                                   |

|                                                                                                                                                                                                          ### Inherited methods                                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity) |-------|--------------------------------------------------------------------------------------------------------------------------------| | `int` | [getEntityType](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## 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<DisplayTimeWindow> getAvailabilityTimeWindows()
```

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<Image> getCreatorImage()
```

Returns the avatar creator of the video.  

### getDurationMillis

```
public long getDurationMillis()
```

Returns the duration of the video, in milliseconds.  

### getEntityId

```
public Optional<String> getEntityId()
```

Returns the id of the entity.  

### getLastEngagementTimeMillis

```
public Optional<Long> getLastEngagementTimeMillis()
```

Returns the last engagement time in milliseconds.  

### getLastPlayBackPositionTimeMillis

```
public Optional<Long> getLastPlayBackPositionTimeMillis()
```

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

### getName

```
public String getName()
```

Returns the name of the entity.  

### getPlatformSpecificPlaybackUris

```
public List<PlatformSpecificUri> getPlatformSpecificPlaybackUris()
```

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<Image> getPosterImages()
```

Returns the poster image of the entity.  

### getViewCount

```
public Optional<String> getViewCount()
```

Returns the view count of the video.  

### getWatchNextType

```
public Optional<Integer> getWatchNextType()
```

Returns watch next type of the video entity.  

### isDownloadedOnDevice

```
public boolean isDownloadedOnDevice()
```

Returns whether the video clip is downloaded on device or not