# VideoPreview

# VideoPreview

*** ** * ** ***

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


```
class VideoPreview
```

<br />

*** ** * ** ***

An object representing a video preview content.

## Summary

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

|                                                                                           ### Public functions                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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)`!>!` | [getImage](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/VideoPreview#getImage())`()` Sets the preview image for the video content. |

|                              ### Public properties                              |
|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`!` | [durationMillis](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/VideoPreview#durationMillis()) |

## Public functions

### getImage

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

Sets the preview image for the video content.  

## Public properties

### durationMillis

```
val durationMillis: Long!
```