AI-generated Key Takeaways
-
MediaLoadOptions is an object used to set options for loading media items in a receiver application.
-
It includes a Builder class for constructing instances of MediaLoadOptions.
-
Constants are defined for the maximum and minimum values allowed for the playback rate.
-
Public methods are available to retrieve information about active tracks, autoplay setting, credentials, custom data, play position, and playback rate.
-
MediaLoadOptions inherits methods from the
java.lang.Objectclass.
An object that holds options that affect how a receiver application should load a media item.
Nested Class Summary
Constant Summary
| double | PLAYBACK_RATE_MAX | The maximum value that can be used in MediaLoadOptions.Builder.setPlaybackRate(double)
. |
| double | PLAYBACK_RATE_MIN | The minimum value that can be used in MediaLoadOptions.Builder.setPlaybackRate(double)
. |
Public Method Summary
| long[] | |
| boolean | |
| String | |
| String | getCredentialsType
()
Returns the credentials type string, as passed in with
MediaLoadOptions.Builder.setCredentialsType(String)
. |
| JSONObject | |
| long | getPlayPosition
()
Returns the initial playback position, in milliseconds from the beginning of
the stream.
|
| double |
Inherited Method Summary
Constants
public static final double PLAYBACK_RATE_MAX
The maximum value that can be used in MediaLoadOptions.Builder.setPlaybackRate(double)
.
public static final double PLAYBACK_RATE_MIN
The minimum value that can be used in MediaLoadOptions.Builder.setPlaybackRate(double)
.
Public Methods
public long[] getActiveTrackIds ()
Returns the array of the active tracks. If the default value is null
.
public boolean getAutoplay ()
Returns the value of whether playback should start immediately. The default value is true
.
public String getCredentials ()
Returns the credentials string, as passed in with MediaLoadOptions.Builder.setCredentials(String)
.
public String getCredentialsType ()
Returns the credentials type string, as passed in with MediaLoadOptions.Builder.setCredentialsType(String)
.
public JSONObject getCustomData ()
Returns the custom application-specific data to pass along with the load request.
public long getPlayPosition ()
Returns the initial playback position, in milliseconds from the beginning of the stream. The default value is 0.
public double getPlaybackRate ()
Returns the playback rate, as the multiplier of the normal playback rate. The default value is 1.

