# LiveStreamingVideoEntity

# LiveStreamingVideoEntity

*** ** * ** ***

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

<br />

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

*** ** * ** ***

An object representing a live streaming video.

## Summary

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

|                                                                                                         ### Public fields                                                                                                          |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                    | [broadcaster](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#broadcaster())       |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[RatingSystem](https://developer.android.com/reference/com/google/android/engage/video/datamodel/RatingSystem)`>` | [contentRatings](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#contentRatings()) |
| `final `[ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                        | [genres](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#genres())                 |
| `final `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                        | [playBackUri](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#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/LiveStreamingVideoEntity#getAvailabilityTimeWindows())`()` Returns the availability time windows of the video entity.                           |
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                                                                        | [getBroadcaster](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getBroadcaster())`()` Returns the broadcaster of the live streaming.                                                               |
| [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)`>`                               | [getBroadcasterIcon](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getBroadcasterIcon())`()` Returns the broadcaster's icon for the live streaming.                                               |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[RatingSystem](https://developer.android.com/reference/com/google/android/engage/video/datamodel/RatingSystem)`>`     | [getContentRatings](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getContentRatings())`()` Returns the content ratings 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)`>`                                                         | [getDescription](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getDescription())`()` Returns the description 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)`>`                                                             | [getEndTimeEpochMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getEndTimeEpochMillis())`()` Returns time when the live streaming ends, in milliseconds since Epoch.                        |
| [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/LiveStreamingVideoEntity#getEntityId())`()` Returns the id of the entity.                                                                                      |
| [ImmutableList](https://guava.dev/releases/21.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                            | [getGenres](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getGenres())`()` Returns the genres 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/LiveStreamingVideoEntity#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/LiveStreamingVideoEntity#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/LiveStreamingVideoEntity#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/LiveStreamingVideoEntity#getPlatformSpecificPlaybackUris())`()` Returns the platform specific playback uris for the live streaming entity. |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                                            | [getPlayBackUri](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#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/LiveStreamingVideoEntity#getPosterImages())`()` Returns the poster image of the entity.                                                                    |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[RecommendationReason](https://developer.android.com/reference/com/google/android/engage/common/datamodel/RecommendationReason)`>` | [getRecommendationReason](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getRecommendationReason())`()` Returns the recommendation reason 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)`>`                                                             | [getStartTimeEpochMillis](https://developer.android.com/reference/com/google/android/engage/video/datamodel/LiveStreamingVideoEntity#getStartTimeEpochMillis())`()` Returns time when the live streaming starts, in milliseconds since Epoch.                  |
| [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/LiveStreamingVideoEntity#getViewCount())`()` Returns the view count of the live streaming.                                                                    |
| [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/LiveStreamingVideoEntity#getWatchNextType())`()` Returns watch next type of the video entity.                                                             |

|                                                                                                                                                                                                          ### 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

### broadcaster

```
public final String broadcaster
```  

### contentRatings

```
public final ImmutableList<RatingSystem> contentRatings
```  

### genres

```
public final ImmutableList<String> genres
```  

### playBackUri

```
public final Uri playBackUri
```  

## Public methods

### getAvailabilityTimeWindows

```
public List<DisplayTimeWindow> getAvailabilityTimeWindows()
```

Returns the availability time windows of the video entity.  

### getBroadcaster

```
public String getBroadcaster()
```

Returns the broadcaster of the live streaming.  

### getBroadcasterIcon

```
public Optional<Image> getBroadcasterIcon()
```

Returns the broadcaster's icon for the live streaming.  

### getContentRatings

```
public ImmutableList<RatingSystem> getContentRatings()
```

Returns the content ratings of the entity.  

### getDescription

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

Returns the description of the entity.  

### getEndTimeEpochMillis

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

Returns time when the live streaming ends, in milliseconds since Epoch.  

### getEntityId

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

Returns the id of the entity.  

### getGenres

```
public ImmutableList<String> getGenres()
```

Returns the genres 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 live streaming 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.  

### getRecommendationReason

```
public Optional<RecommendationReason> getRecommendationReason()
```

Returns the recommendation reason of the entity.  

### getStartTimeEpochMillis

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

Returns time when the live streaming starts, in milliseconds since Epoch.  

### getViewCount

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

Returns the view count of the live streaming.  

### getWatchNextType

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

Returns watch next type of the video entity.