public class DataSource extends Object
ShadowMediaPlayer
and ShadowMediaMetadataRetriever
.Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
static DataSource |
toDataSource(Context context,
Uri uri) |
|
static DataSource |
toDataSource(Context context,
Uri uri,
Map<String,String> headers) |
|
static DataSource |
toDataSource(Context context,
Uri uri,
Map<String,String> headers,
List<HttpCookie> cookies) |
|
static DataSource |
toDataSource(AssetFileDescriptor assetFileDescriptor) |
|
static DataSource |
toDataSource(MediaDataSource mediaDataSource) |
|
static DataSource |
toDataSource(FileDescriptor fd) |
|
static DataSource |
toDataSource(FileDescriptor fd,
long offset,
long length) |
|
static DataSource |
toDataSource(String path) |
|
static DataSource |
toDataSource(String uri,
Map<String,String> headers) |
public static DataSource toDataSource(String path)
public static DataSource toDataSource(Context context, Uri uri)
public static DataSource toDataSource(Context context, Uri uri, Map<String,String> headers)
public static DataSource toDataSource(Context context, Uri uri, Map<String,String> headers, List<HttpCookie> cookies)
public static DataSource toDataSource(String uri, Map<String,String> headers)
public static DataSource toDataSource(FileDescriptor fd)
public static DataSource toDataSource(MediaDataSource mediaDataSource)
public static DataSource toDataSource(AssetFileDescriptor assetFileDescriptor)
public static DataSource toDataSource(FileDescriptor fd, long offset, long length)