Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

DataSourceDesc.BuilderBase

protected static class DataSourceDesc.BuilderBase
extends Object

java.lang.Object
   ↳ android.media.DataSourceDesc.BuilderBase<T extends android.media.DataSourceDesc.BuilderBase>


Base class for Builders in the subclasses of DataSourceDesc.

Summary

Public methods

T setEndPosition(long position)

Sets the end position in milliseconds at which the playback will end.

T setMediaId(String mediaId)

Sets the media Id of this data source.

T setStartPosition(long position)

Sets the start position in milliseconds at which the playback will start.

Inherited methods

Public methods

setEndPosition

public T setEndPosition (long position)

Sets the end position in milliseconds at which the playback will end. Any negative number is treated as maximum duration DataSourceDesc.LONG_MAX_TIME_MS of the data source

Parameters
position long: the end position in milliseconds at which the playback will end

Returns
T the same Builder instance. This value will never be null.

setMediaId

public T setMediaId (String mediaId)

Sets the media Id of this data source.

Parameters
mediaId String: the media Id of this data source

Returns
T the same Builder instance. This value will never be null.

setStartPosition

public T setStartPosition (long position)

Sets the start position in milliseconds at which the playback will start. Any negative number is treated as 0.

Parameters
position long: the start position in milliseconds at which the playback will start

Returns
T the same Builder instance. This value will never be null.