MediaLoadOptions.Builder

public static class MediaLoadOptions.Builder extends Object

Builder for MediaLoadOptions to build the object.

Public Constructor Summary

Public Method Summary

MediaLoadOptions
build()
Builds a MediaLoadOptions object.
MediaLoadOptions.Builder
setActiveTrackIds(long[] activeTrackIds)
Sets the array of the active tracks.
MediaLoadOptions.Builder
setAutoplay(boolean autoplay)
Sets the value of whether playback should start immediately.
MediaLoadOptions.Builder
setCredentials(String credentials)
Sets the user credentials to pass along with the load request to the receiver.
MediaLoadOptions.Builder
setCredentialsType(String credentialsType)
Sets the user credentials type to pass along with the load request to the receiver.
MediaLoadOptions.Builder
setCustomData(JSONObject customData)
Sets the custom application-specific data to pass along with the load request.
MediaLoadOptions.Builder
setPlayPosition(long playPosition)
Sets the initial playback position, in milliseconds from the beginning of the stream.
MediaLoadOptions.Builder
setPlaybackRate(double playbackRate)
Sets the playback rate, as the multiplier of the normal playback rate.

Inherited Method Summary

Public Constructors

public MediaLoadOptions.Builder ()

Public Methods

public MediaLoadOptions build ()

Builds a MediaLoadOptions object.

public MediaLoadOptions.Builder setActiveTrackIds (long[] activeTrackIds)

Sets the array of the active tracks.

public MediaLoadOptions.Builder setAutoplay (boolean autoplay)

Sets the value of whether playback should start immediately.

public MediaLoadOptions.Builder setCredentials (String credentials)

Sets the user credentials to pass along with the load request to the receiver. The credentials are completely application-specific and can be any arbitrary String.

public MediaLoadOptions.Builder setCredentialsType (String credentialsType)

Sets the user credentials type to pass along with the load request to the receiver. The credentials type is completely application-specific and can be any arbitrary String.

public MediaLoadOptions.Builder setCustomData (JSONObject customData)

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

public MediaLoadOptions.Builder setPlayPosition (long playPosition)

Sets the initial playback position, in milliseconds from the beginning of the stream.

public MediaLoadOptions.Builder setPlaybackRate (double playbackRate)

Sets the playback rate, as the multiplier of the normal playback rate. The accepted value is between PLAYBACK_RATE_MIN and PLAYBACK_RATE_MAX. The normal playback rate is 1.0.