# MediaLiveSeekableRange

public class **MediaLiveSeekableRange** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) A class that aggregates information about the seekable range of a media stream.

### Nested Class Summary

|---|---|---|---|
| class | [MediaLiveSeekableRange.Builder](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange.Builder) || Builder for `https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange`. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| long | [getEndTime](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getEndTime())() Returns the end time, in milliseconds, of the seekable range (which ranges from 0 to the end of the duration), if available. |
| long | [getStartTime](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getStartTime())() Returns the start time, in milliseconds, of the seekable range (which ranges from 0 to the end time as returned by `https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getEndTime()`). |
| int | [hashCode](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#hashCode())() |
| boolean | [isLiveDone](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#isLiveDone())() Returns the flag indicating whether the current live stream is done. |
| boolean | [isMovingWindow](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#isMovingWindow())() Returns `true` if the current seekable range is a fixed-length moving window or `false` if it is an expanding range. |
| void | [writeToParcel](https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) out, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) other)

#### public long **getEndTime** ()

Returns the end time, in milliseconds, of the seekable range (which ranges from 0 to
the end of the duration), if available.

#### public long **getStartTime** ()

Returns the start time, in milliseconds, of the seekable range (which ranges from 0
to the end time as returned by `https://developers.google.com/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getEndTime()`).

#### public int **hashCode** ()

#### public boolean **isLiveDone** ()

Returns the flag indicating whether the current live stream is done. It's updated to
`true` when live stream finishes. This is specifically for event-type live
stream, which might change to VOD when live stream finishes.

#### public boolean **isMovingWindow** ()

Returns `true` if the current seekable range is a fixed-length moving
window or `false` if it is an expanding range.

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) out, int flags)