public final class MediaFile
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MediaFile.ProtectionType
DRM protection type.
|
| Constructor and Description |
|---|
MediaFile(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getContentId() |
java.lang.String |
getContentType() |
byte[] |
getLicense() |
MediaInfo |
getMediaInfo() |
Attribute |
getMetadata() |
java.lang.String |
getName() |
FileProgress |
getProgress() |
MediaFile.ProtectionType |
getProtectionType() |
java.util.Map<java.lang.String,java.lang.String> |
getSilentLicenseAcquisitionUrls() |
TrackInfo[] |
getTrackInfoArray() |
void |
setLicense(byte[] license) |
public MediaFile(java.lang.String name)
throws ErrorCodeException,
java.lang.NullPointerException
name - ErrorCodeExceptionjava.lang.NullPointerExceptionpublic java.lang.String getName()
public java.lang.String getContentId()
public java.lang.String getContentType()
public byte[] getLicense()
throws ErrorCodeException
ErrorCodeExceptionpublic MediaInfo getMediaInfo() throws ErrorCodeException
ErrorCodeExceptionpublic Attribute getMetadata() throws ErrorCodeException
ErrorCodeExceptionpublic MediaFile.ProtectionType getProtectionType() throws ErrorCodeException
ErrorCodeExceptionpublic FileProgress getProgress() throws ErrorCodeException
ErrorCodeExceptionpublic java.util.Map<java.lang.String,java.lang.String> getSilentLicenseAcquisitionUrls()
throws ErrorCodeException
ErrorCodeExceptionpublic TrackInfo[] getTrackInfoArray() throws ErrorCodeException
ErrorCodeExceptionpublic void setLicense(byte[] license)
throws ErrorCodeException,
java.lang.NullPointerException
license - ErrorCodeExceptionjava.lang.NullPointerExceptionpublic void close()