MediaLoadRequestData

public class MediaLoadRequestData extends Object

The class used in load commands for specifying how a receiver application should load media.

Nested Class Summary

class MediaLoadRequestData.Builder Builder class for MediaLoadRequestData

Constant Summary

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 Method Summary

boolean
equals(Object other)
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).
long
getCurrentTime()
Returns the initial playback position, in milliseconds from the beginning of the stream.
JSONObject
getCustomData()
Returns the custom application-specific data to pass along with the load request.
MediaInfo
getMediaInfo()
Returns the MediaInfo of the load request.
double
getPlaybackRate()
Returns the playback rate, as the multiplier of the normal playback rate.
MediaQueueData
getQueueData()
Returns the MediaQueueData of the load request.
int

Inherited Method Summary

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 boolean equals (Object other)

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 setCredentials(String).

public String getCredentialsType ()

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

public long getCurrentTime ()

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

public JSONObject getCustomData ()

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

public MediaInfo getMediaInfo ()

Returns the MediaInfo of the load request.

public double getPlaybackRate ()

Returns the playback rate, as the multiplier of the normal playback rate.

public MediaQueueData getQueueData ()

Returns the MediaQueueData of the load request.

public int hashCode ()