MediaLiveSeekableRange
Stay organized with collections
Save and categorize content based on your preferences.
A class that aggregates information about the seekable range of a media stream.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
boolean |
|
long |
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
() Returns the start time, in milliseconds, of the seekable range (which ranges
from 0 to the end time as returned by getEndTime()
).
|
int |
|
boolean |
isLiveDone
() Returns the flag indicating whether the current live stream is done.
|
boolean |
isMovingWindow
() Returns true
if the current seekable range is a fixed-length
moving window or false
if it is an expanding range.
|
void |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
Public Methods
public boolean
equals
( Object
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 getEndTime()
).
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
out, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eMediaLiveSeekableRange\u003c/code\u003e provides information about the seekable range within a live media stream, such as start and end times.\u003c/p\u003e\n"],["\u003cp\u003eIt indicates whether the live stream has ended (\u003ccode\u003eisLiveDone\u003c/code\u003e) and if the seekable range is a moving window or expanding (\u003ccode\u003eisMovingWindow\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this class to understand and control the playback behavior of live streams in their applications.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eParcelable\u003c/code\u003e for efficient data transfer between components.\u003c/p\u003e\n"]]],[],null,["# MediaLiveSeekableRange\n\npublic class **MediaLiveSeekableRange** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nA class that aggregates information about the seekable range of a media stream. \n\n### Nested Class Summary\n\n|-------|---|---|--------------------------------------------------------------------------------------------------------------|\n| class | [MediaLiveSeekableRange.Builder](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange.Builder) || Builder for [MediaLiveSeekableRange](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange). |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) other) |\n| long | [getEndTime](/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. |\n| long | [getStartTime](/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 [getEndTime()](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getEndTime())). |\n| int | [hashCode](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#hashCode())() |\n| boolean | [isLiveDone](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#isLiveDone())() Returns the flag indicating whether the current live stream is done. |\n| boolean | [isMovingWindow](/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. |\n| void | [writeToParcel](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) other)\n\n#### public long **getEndTime** ()\n\nReturns the end time, in milliseconds, of the seekable range (which ranges from 0 to\nthe end of the duration), if available. \n\n#### public long **getStartTime** ()\n\nReturns the start time, in milliseconds, of the seekable range (which ranges from 0\nto the end time as returned by [getEndTime()](/android/reference/com/google/android/gms/cast/MediaLiveSeekableRange#getEndTime())). \n\n#### public int **hashCode** ()\n\n#### public boolean **isLiveDone** ()\n\nReturns the flag indicating whether the current live stream is done. It's updated to\n`true` when live stream finishes. This is specifically for event-type live\nstream, which might change to VOD when live stream finishes. \n\n#### public boolean **isMovingWindow** ()\n\nReturns `true` if the current seekable range is a fixed-length moving\nwindow or `false` if it is an expanding range. \n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags)"]]