# MusicVideoEntity

# MusicVideoEntity

*** ** * ** ***

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

<br />

```
public final class MusicVideoEntity 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.audio.datamodel.MusicVideoEntity](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity) |

*** ** * ** ***

An object representing a music video.

## Summary

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

|                              ### Public fields                              |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html) | [playBackUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#playBackUri()) |

|                                                                             ### Public methods                                                                             |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                           | [getArtists](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getArtists())`()` Returns the list of artists of the music video.                                     |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                           | [getContentRatings](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getContentRatings())`()` Returns the content ratings of the music video.                       |
| [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)`>`     | [getDescription](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getDescription())`()` Returns the description of the audio entity, if available                   |
| [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)`>`         | [getDurationMillis](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getDurationMillis())`()` Returns the duration of the music video.                              |
| [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/audio/datamodel/MusicVideoEntity#getEntityId())`()` Returns the id of the entity.                                                     |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[Uri](https://developer.android.com/reference/android/net/Uri.html)`>`         | [getInfoPageUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getInfoPageUri())`()` Returns the info page uri of the music video, if available                  |
| [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/audio/datamodel/MusicVideoEntity#getLastEngagementTimeMillis())`()` Returns the last engagement time in milliseconds. |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                    | [getName](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getName())`()` Returns the name of the entity.                                                           |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                        | [getPlayBackUri](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getPlayBackUri())`()` Returns the play back uri of the music 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/audio/datamodel/MusicVideoEntity#getPosterImages())`()` Returns the poster image of the entity.                                   |
| [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)`>`   | [getProgressPercentComplete](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#getProgressPercentComplete())`()` Returns the percentage progress completed.          |
| [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/audio/datamodel/MusicVideoEntity#getViewCount())`()` Returns the number of views on the music video.                                 |
| `boolean`                                                                                                                                                                  | [isDownloadedOnDevice](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#isDownloadedOnDevice())`()` Returns whether the music video is downloaded on device or not  |
| `boolean`                                                                                                                                                                  | [isExplicitContent](https://developer.android.com/reference/com/google/android/engage/audio/datamodel/MusicVideoEntity#isExplicitContent())`()` Returns whether the music video has explicit content 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

### playBackUri

```
public final Uri playBackUri
```  

## Public methods

### getArtists

```
public List<String> getArtists()
```

Returns the list of artists of the music video.  

### getContentRatings

```
public List<String> getContentRatings()
```

Returns the content ratings of the music video.  

### getDescription

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

Returns the description of the audio entity, if available  

### getDurationMillis

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

Returns the duration of the music video.  

### getEntityId

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

Returns the id of the entity.  

### getInfoPageUri

```
public Optional<Uri> getInfoPageUri()
```

Returns the info page uri of the music video, if available  

### getLastEngagementTimeMillis

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

Returns the last engagement time in milliseconds.  

### getName

```
public String getName()
```

Returns the name of the entity.  

### getPlayBackUri

```
public Uri getPlayBackUri()
```

Returns the play back uri of the music video.  

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster image of the entity.  

### getProgressPercentComplete

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

Returns the percentage progress completed.  

### getViewCount

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

Returns the number of views on the music video.  

### isDownloadedOnDevice

```
public boolean isDownloadedOnDevice()
```

Returns whether the music video is downloaded on device or not  

### isExplicitContent

```
public boolean isExplicitContent()
```

Returns whether the music video has explicit content or not