net.chilicat.m3u8
Interface Element


public interface Element

A playlist element.

Author:
dkuffner

Method Summary
 int getDuration()
           
 EncryptionInfo getEncryptionInfo()
          If media is encryped than will this method return a info object.
 PlaylistInfo getPlayListInfo()
          If element a playlist than this method will return a PlaylistInfo object.
 long getProgramDate()
          The program date.
 java.lang.String getTitle()
           
 java.net.URI getURI()
          URI to media or playlist.
 boolean isEncrypted()
          Media can be encrypted.
 boolean isMedia()
          Element is a media file.
 boolean isPlayList()
          Element can be another playlist.
 

Method Detail

getTitle

java.lang.String getTitle()

getDuration

int getDuration()

getURI

java.net.URI getURI()
URI to media or playlist.

Returns:
the URI.

isEncrypted

boolean isEncrypted()
Media can be encrypted.

Returns:
true if media encrypted.

isPlayList

boolean isPlayList()
Element can be another playlist.

Returns:
true if element a playlist.

isMedia

boolean isMedia()
Element is a media file.

Returns:
true if element a media file and not a playlist.

getEncryptionInfo

EncryptionInfo getEncryptionInfo()
If media is encryped than will this method return a info object.

Returns:
the info object or null if media not encrypted.

getPlayListInfo

PlaylistInfo getPlayListInfo()
If element a playlist than this method will return a PlaylistInfo object.

Returns:
a info object or null in case of element is not a playlist.

getProgramDate

long getProgramDate()
The program date.

Returns:
-1 in case of program date is not set.


Copyright © 2010. All Rights Reserved.