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 |
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<String, String>
|
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<String, String> getHeaders ()
Return the Uri headers of this data source.
| Returns | |
|---|---|
Map<String, String> |
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.