public class DataSource
extends java.lang.Object
Opaque class for uniquely identifying a media data source, as used by ShadowMediaPlayer
and ShadowMediaMetadataRetriever
.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static DataSource |
toDataSource(android.content.Context context,
android.net.Uri uri) |
static DataSource |
toDataSource(android.content.Context context,
android.net.Uri uri,
java.util.Map<java.lang.String,java.lang.String> headers) |
static DataSource |
toDataSource(java.io.FileDescriptor fd) |
static DataSource |
toDataSource(java.io.FileDescriptor fd,
long offset,
long length) |
static DataSource |
toDataSource(java.lang.String path) |
static DataSource |
toDataSource(java.lang.String uri,
java.util.Map<java.lang.String,java.lang.String> headers) |
public static DataSource toDataSource(java.lang.String path)
public static DataSource toDataSource(android.content.Context context, android.net.Uri uri)
public static DataSource toDataSource(android.content.Context context, android.net.Uri uri, java.util.Map<java.lang.String,java.lang.String> headers)
public static DataSource toDataSource(java.lang.String uri, java.util.Map<java.lang.String,java.lang.String> headers)
public static DataSource toDataSource(java.io.FileDescriptor fd)
public static DataSource toDataSource(java.io.FileDescriptor fd, long offset, long length)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object