MediaLoadRequestData

public class MediaLoadRequestData extends Object
implements Parcelable RequestData

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 MediaLoadRequestData.Builder.setPlaybackRate(double).
double PLAYBACK_RATE_MIN The minimum value that can be used in MediaLoadRequestData.Builder.setPlaybackRate(double).
long PLAY_POSITION_UNASSIGNED The special value for indicating a load request has no explicit start position.

Inherited Constant Summary

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 MediaLoadOptions.Builder.setCredentials(String).
String
getCredentialsType()
Returns the credentials type string, as passed in with MediaLoadOptions.Builder.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
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Constants

public static final double PLAYBACK_RATE_MAX

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

Constant Value: 2.0

public static final double PLAYBACK_RATE_MIN

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

Constant Value: 0.5

public static final long PLAY_POSITION_UNASSIGNED

The special value for indicating a load request has no explicit start position.

If this value is used, non-live streams will be loaded from 0 and live streams will be loaded from the most recent position.

Constant Value: -1

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 Boolean.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 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 ()

public void writeToParcel (Parcel out, int flags)