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

UriDataSourceDesc

public class UriDataSourceDesc
extends DataSourceDesc

java.lang.Object
   ↳ android.media.DataSourceDesc
     ↳ android.media.UriDataSourceDesc


Structure of data source descriptor for sources using URI. Used by MediaPlayer2#setDataSource, MediaPlayer2#setNextDataSource and MediaPlayer2#setNextDataSources to set data source for playback.

Users should use Builder to change UriDataSourceDesc.

Summary

Nested classes

class UriDataSourceDesc.Builder

Builder class for UriDataSourceDesc objects. 

Inherited constants

Public methods

Context getContext()

Return the Context used for resolving the Uri of this data source.

List<HttpCookie> getCookies()

Return the Uri cookies of this data source.

Map<StringString> getHeaders()

Return the Uri headers of this data source.

Uri getUri()

Return the Uri of this data source.

Inherited methods

Public methods

getContext

public Context getContext ()

Return the Context used for resolving the Uri of this data source.

Returns
Context the Context used for resolving the Uri of this data source

getCookies

public List<HttpCookie> getCookies ()

Return the Uri cookies of this data source.

Returns
List<HttpCookie> the Uri cookies of this data source

getHeaders

public Map<StringString> getHeaders ()

Return the Uri headers of this data source.

Returns
Map<StringString> the Uri headers of this data source

getUri

public Uri getUri ()

Return the Uri of this data source.

Returns
Uri the Uri of this data source