-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
public class Playlist extends MetadataObject implements Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Playlist.Fields
Provides the list of known field names that can appear in the properties Map.
-
Field Summary
Fields Modifier and Type Field Description public final static Playlist
EMPTY_PLAYLIST
private final List<Video>
videos
private final List<Video>
errorVideos
public final static int
PARCEL_OBJECT_TYPE
public static Parcelable.Creator<Playlist>
CREATOR
-
Method Summary
Modifier and Type Method Description List<Video>
getVideos()
Retrieves the ordered List of valid Videos contained in this Playlist. List<Video>
getErrorVideos()
Retrieves the ordered List of error Videos contained in this Playlist. List<Video>
getAllVideosAndErrors()
Retrieves the ordered List of all valid Videos and error Videos. Integer
getCount()
Retrieves the number of valid videos in this Playlist. String
toString()
int
describeContents()
void
writeToParcel(Parcel parcel, int i)
-
Methods inherited from class com.brightcove.player.model.MetadataObject
getIntegerProperty, getIntegerProperty, getLongProperty, getProperties, getStringProperty, getStringProperty
-
Methods inherited from class android.os.Parcelable
describeContents, writeToParcel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Playlist
Playlist(Map<String, Object> properties, List<Video> videos)
Initializes a new Playlist with a predefined metadata properties collection and apredefined List of Video objects.- Parameters:
properties
- the metadata assigned to this instancevideos
- a List of videos to associate with this Playlist
-
-
Method Detail
-
getVideos
List<Video> getVideos()
Retrieves the ordered List of valid Videos contained in this Playlist.Only videos with OK will be returned.
-
getErrorVideos
List<Video> getErrorVideos()
Retrieves the ordered List of error Videos contained in this Playlist.Only videos with ERROR will be returned.
-
getAllVideosAndErrors
List<Video> getAllVideosAndErrors()
Retrieves the ordered List of all valid Videos and error Videos.All videos with both OK and ERROR will be returned.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel parcel, int i)
-
-
-
-