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
Modifier and TypeClassDescriptionstatic final class
Provides the list of known field names that can appear in the properties Map. -
Field Summary
Modifier and TypeFieldDescriptionstatic android.os.Parcelable.Creator<Playlist>
Creator for de-serializing playlist from the givenParcel
.static final Playlist
An empty playlist.static final int
The type of the parcelable object.Fields inherited from class com.brightcove.player.model.MetadataObject
properties, TAG
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves 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()
void
writeToParcel
(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.OK
will be returned.- Returns:
- ordered List of valid videos
-
getErrorVideos
Retrieves the ordered List of error Videos contained in this Playlist. Only videos withVideo.Status.ERROR
will 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.OK
andVideo.Status.ERROR
will 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:
toString
in classMetadataObject
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel parcel, int i) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-