MediaLoadOptions | Doclava
public class

MediaLoadOptions

extends Object
java.lang.Object
   ↳ com.google.android.gms.cast.MediaLoadOptions

Class Overview

An object that holds options that affect how a receiver application should load a media item.

Summary

Nested Classes
class MediaLoadOptions.Builder Builder for MediaLoadOptions to build the object. 
Constants
double PLAYBACK_RATE_MAX The maximum value that can be used in setPlaybackRate(double).
double PLAYBACK_RATE_MIN The minimum value that can be used in setPlaybackRate(double).
Public Methods
long[] getActiveTrackIds()
Returns the array of the active tracks.
boolean getAutoplay()
Returns the value of whether playback should start immediately.
String getCredentials()
Returns the credentials string, as passed in with setCredentials(String).
String getCredentialsType()
Returns the credentials type string, as passed in with setCredentialsType(String).
JSONObject getCustomData()
Returns the custom application-specific data to pass along with the load request.
long getPlayPosition()
Returns the initial playback position, in milliseconds from the beginning of the stream.
double getPlaybackRate()
Returns the playback rate, as the multiplier of the normal playback rate.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final double PLAYBACK_RATE_MAX

The maximum value that can be used in setPlaybackRate(double).

Constant Value: 2.0

public static final double PLAYBACK_RATE_MIN

The minimum value that can be used in setPlaybackRate(double).

Constant Value: 0.5

Public Methods

public long[] getActiveTrackIds ()

Returns the array of the active tracks. If the default value is null.

Returns
long[]

public boolean getAutoplay ()

Returns the value of whether playback should start immediately. The default value is true.

Returns
boolean

public String getCredentials ()

Returns the credentials string, as passed in with setCredentials(String).

Returns
String

public String getCredentialsType ()

Returns the credentials type string, as passed in with setCredentialsType(String).

Returns
String

public JSONObject getCustomData ()

Returns the custom application-specific data to pass along with the load request.

Returns
JSONObject

public long getPlayPosition ()

Returns the initial playback position, in milliseconds from the beginning of the stream. The default value is 0.

Returns
long

public double getPlaybackRate ()

Returns the playback rate, as the multiplier of the normal playback rate. The default value is 1.

Returns
double