public class DataSource extends Object
Opaque class for uniquely identifying a media data source, as used by ShadowMediaPlayer
and ShadowMediaMetadataRetriever
.
Modifier and Type | Method and 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(FileDescriptor fd) |
static DataSource |
toDataSource(FileDescriptor fd,
long offset,
long length) |
static DataSource |
toDataSource(MediaDataSource mediaDataSource) |
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(String uri, Map<String,String> headers)
public static DataSource toDataSource(FileDescriptor fd)
public static DataSource toDataSource(MediaDataSource mediaDataSource)
public static DataSource toDataSource(FileDescriptor fd, long offset, long length)