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
- ErrorCodeException
java.lang.NullPointerException
public java.lang.String getName()
public java.lang.String getContentId()
public java.lang.String getContentType()
public byte[] getLicense() throws ErrorCodeException
ErrorCodeException
public MediaInfo getMediaInfo() throws ErrorCodeException
ErrorCodeException
public Attribute getMetadata() throws ErrorCodeException
ErrorCodeException
public MediaFile.ProtectionType getProtectionType() throws ErrorCodeException
ErrorCodeException
public FileProgress getProgress() throws ErrorCodeException
ErrorCodeException
public java.util.Map<java.lang.String,java.lang.String> getSilentLicenseAcquisitionUrls() throws ErrorCodeException
ErrorCodeException
public TrackInfo[] getTrackInfoArray() throws ErrorCodeException
ErrorCodeException
public void setLicense(byte[] license) throws ErrorCodeException, java.lang.NullPointerException
license
- ErrorCodeException
java.lang.NullPointerException
public void close()