# VideoClipEntity

# VideoClipEntity

*** ** * ** ***

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

<br />

```
class VideoClipEntity : Entity
```

<br />

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                           |||
| ↳ | [com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)                    ||
|   | ↳ | [com.google.android.engage.video.datamodel.VideoClipEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity) |

*** ** * ** ***

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

## Summary

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

|                                                                                                                                                             ### Public functions                                                                                                                                                              |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!`     | [getAvailabilityTimeWindows](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getAvailabilityTimeWindows())`()` Returns the availability time windows of the video entity.                          |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!`                                                                                                                                     | [getCreatorImage](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getCreatorImage())`()` Returns the avatar creator of the video.                                                                  |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                                             | [getEntityId](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                                 | [getLastEngagementTimeMillis](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!>!`                                                                                                                                                                 | [getLastPlayBackPositionTimeMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getLastPlayBackPositionTimeMillis())`()` Returns last play back position of the video entity, in milliseconds. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                                                                                                                                                                           | [getName](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getName())`()` Returns the name of the entity.                                                                                           |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[PlatformSpecificUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/PlatformSpecificUri)`!>!` | [getPlatformSpecificPlaybackUris](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getPlatformSpecificPlaybackUris())`()` Returns the platform specific playback uris for the video clip entity.    |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!`                             | [getPosterImages](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!`                                                                                                                                                             | [getViewCount](https://developer.android.com/reference/kotlin/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)`<`[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`!>!`                                                                                                                                                                   | [getWatchNextType](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#getWatchNextType())`()` Returns watch next type of the video entity.                                                            |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                                                                                            | [isDownloadedOnDevice](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#isDownloadedOnDevice())`()` Returns whether the video clip is downloaded on device or not                                   |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)        | [createdTimeEpochMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#createdTimeEpochMillis()) |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [creator](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#creator())                               |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)        | [durationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#durationMillis())                 |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`              | [playBackUri](https://developer.android.com/reference/kotlin/com/google/android/engage/video/datamodel/VideoClipEntity#playBackUri())                       |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[com.google.android.engage.common.datamodel.Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity) |----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getEntityType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity#getEntityType())`()` | |

## Public functions

### getAvailabilityTimeWindows

```
fun getAvailabilityTimeWindows(): (Mutable)List<DisplayTimeWindow!>!
```

Returns the availability time windows of the video entity.  

### getCreatorImage

```
fun getCreatorImage(): Optional<Image!>!
```

Returns the avatar creator of the video.  

### getEntityId

```
fun getEntityId(): Optional<String!>!
```

Returns the id of the entity.  

### getLastEngagementTimeMillis

```
fun getLastEngagementTimeMillis(): Optional<Long!>!
```

Returns the last engagement time in milliseconds.  

### getLastPlayBackPositionTimeMillis

```
fun getLastPlayBackPositionTimeMillis(): Optional<Long!>!
```

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

### getName

```
fun getName(): String!
```

Returns the name of the entity.  

### getPlatformSpecificPlaybackUris

```
fun getPlatformSpecificPlaybackUris(): (Mutable)List<PlatformSpecificUri!>!
```

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

### getPosterImages

```
fun getPosterImages(): (Mutable)List<Image!>!
```

Returns the poster image of the entity.  

### getViewCount

```
fun getViewCount(): Optional<String!>!
```

Returns the view count of the video.  

### getWatchNextType

```
fun getWatchNextType(): Optional<Int!>!
```

Returns watch next type of the video entity.  

### isDownloadedOnDevice

```
fun isDownloadedOnDevice(): Boolean
```

Returns whether the video clip is downloaded on device or not  

## Public properties

### createdTimeEpochMillis

```
val createdTimeEpochMillis: Long
```  

### creator

```
val creator: String!
```  

### durationMillis

```
val durationMillis: Long
```  

### playBackUri

```
val playBackUri: Uri!
```