|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.mediacore.MediaResource
public final class MediaResource
Class wrapping all information about a media resource.
| Nested Class Summary | |
|---|---|
static class |
MediaResource.MimeType
The mime resource type. |
static class |
MediaResource.Type
The resource type. |
| Constructor Summary | |
|---|---|
MediaResource(String url,
MediaResource.Type type,
Metadata metadata)
Default constructor. |
|
| Method Summary | |
|---|---|
static MediaResource |
createFromMetadata(Metadata metadata,
MediaResource.Type type)
|
static MediaResource |
createFromUrl(String url,
Metadata metadata)
Helper function for creating a media resource instance. |
boolean |
equals(MediaResource otherMediaResource)
Checks if is equal with other media resource. |
Metadata |
getMetadata()
Resource custom information. |
MediaResource.Type |
getType()
Type of the media resource. |
String |
getUrl()
URL where the media manifest/playlist can be found. |
String |
toString()
Returns a String representation of the current media resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MediaResource(String url,
MediaResource.Type type,
Metadata metadata)
url - the url where the manifest/playlist of media is availabletype - the type of the resource.metadata - the custom information associated with this resource| Method Detail |
|---|
public String getUrl()
public MediaResource.Type getType()
public Metadata getMetadata()
public boolean equals(MediaResource otherMediaResource)
otherMediaResource - the other media resource to be compared with.
public String toString()
toString in class Object
public static MediaResource createFromUrl(String url,
Metadata metadata)
throws IllegalArgumentException
url - the url where the manifest/playlist of media is availablemetadata - the custom information associated with this resource
IllegalArgumentException - if provided url is null or empty.
public static MediaResource createFromMetadata(Metadata metadata,
MediaResource.Type type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||