Package com.brightcove.player.model
Class Playlist
java.lang.Object
com.brightcove.player.model.MetadataObject
com.brightcove.player.model.Playlist
- All Implemented Interfaces:
android.os.Parcelable,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides the list of known field names that can appear in the properties Map. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic android.os.Parcelable.Creator<Playlist>Creator for de-serializing playlist from the givenParcel.static final PlaylistAn empty playlist.static final intThe type of the parcelable object.Fields inherited from class com.brightcove.player.model.MetadataObject
properties, TAGFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the ordered List of all valid Videos and error Videos.getCount()Retrieves the number of valid videos in this Playlist.Retrieves the ordered List of error Videos contained in this Playlist.Retrieves the ordered List of valid Videos contained in this Playlist.toString()voidwriteToParcel(android.os.Parcel parcel, int i) Methods inherited from class com.brightcove.player.model.MetadataObject
getIntegerProperty, getIntegerProperty, getLongProperty, getProperties, getStringProperty, getStringProperty
-
Field Details
-
EMPTY_PLAYLIST
An empty playlist. -
PARCEL_OBJECT_TYPE
public static final int PARCEL_OBJECT_TYPEThe type of the parcelable object.- See Also:
-
CREATOR
Creator for de-serializing playlist from the givenParcel.
-
-
Constructor Details
-
Playlist
- See Also:
-
Playlist
Initializes a new Playlist with a predefined metadata properties collection and a predefined List of Video objects.- Parameters:
properties- the metadata assigned to this instancevideos- a List of videos to associate with this Playlist- Throws:
IllegalArgumentException- if either or both arguments are null
-
-
Method Details
-
getVideos
Retrieves the ordered List of valid Videos contained in this Playlist. Only videos withVideo.Status.OKwill be returned.- Returns:
- ordered List of valid videos
-
getErrorVideos
Retrieves the ordered List of error Videos contained in this Playlist. Only videos withVideo.Status.ERRORwill be returned.- Returns:
- ordered List of error Videos
-
getAllVideosAndErrors
Retrieves the ordered List of all valid Videos and error Videos. All videos with bothVideo.Status.OKandVideo.Status.ERRORwill be returned.- Returns:
- ordered List of valid videos and error Videos.
-
getCount
Retrieves the number of valid videos in this Playlist.- Returns:
- the number of valid videos in this playlist
-
toString
- Overrides:
toStringin classMetadataObject
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel parcel, int i) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-