Class PlaylistItem
java.lang.Object
com.jwplayer.pub.api.media.playlists.PlaylistItem
An item in a Playlist.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final <any>
final String
final DrmConfig
final Integer
final List<ExternalMetadata>
A list of external metadata in the video the user wishes to receive a meta eventfinal String
final String
HTTP Headers that should be used when requesting this playlist itemfinal ImaDaiSettings
final MediaDrmCallback
TheMediaDrmCallback
that is used for key and provisioning requests.final String
final String
final List<MediaSource>
final Double
final String
final JSONObject
final String
-
Method Summary
Modifier and TypeMethodDescriptionint
getFile()
getImage()
getTitle()
JSONObject
void
void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
mTitle
-
mDescription
-
mFile
-
mImage
-
mMediaId
-
mFeedId
-
mRecommendations
-
mSources
-
mTracks
-
mAdSchedule
-
mVmapUrlOrXML
-
mStartTime
-
mDuration
-
mHttpHeaders
HTTP Headers that should be used when requesting this playlist item -
mMediaDrmCallback
TheMediaDrmCallback
that is used for key and provisioning requests. -
mImaDaiSettings
-
mDrmConfig
-
mUserInfo
public final JSONObject mUserInfo -
mExternalMetadata
A list of external metadata in the video the user wishes to receive a meta event -
CREATOR
public static final <any> CREATOR
-
-
Method Details
-
setImage
-
getTitle
- Returns:
- Title of the item. This is displayed inside of the player prior to playback, as well as in the visual playlist. This can be hidden with the PlayerConfig.setDisplayTitle() option.
-
getDescription
- Returns:
- Short description of the item. It is displayed below the title. This can be hidden with the PlayerConfig.setDisplayDescription() option.
-
getFile
- Returns:
- The media file for this playlist item.
-
getImage
- Returns:
- Poster image URL. Displayed before and after playback.
-
getMediaId
- Returns:
- Unique identifier of this item. Used by advertising, analytics and discovery services.
-
getFeedId
- Returns:
- Unique identifier of this item. Used by related/recommendation services.
-
getRecommendations
- Returns:
- URL to a feed that contains related items for a particular playlist item.
-
getStartTime
- Returns:
- URL to a feed that contains related items for a particular playlist item.
-
getDuration
- Returns:
- the display duration for the item set in seconds
-
getSources
- Returns:
- Used for quality toggling and alternate sources.
-
getTracks
- Returns:
- Include captions, chapters, and thumbnails for media.
-
getAdSchedule
- Returns:
- Schedule advertising for a specific media file.
-
getVMAPSchedule
- Returns:
- Either a local, remote URL of the vmap file, or a VMAP (XML) string.
-
getMediaDrmCallback
- Returns:
- DRM callback instance -- used for Widevine DRM.
-
getDrmConfig
- Returns:
- DRM config
-
getUserInfo
public JSONObject getUserInfo()- Returns:
- User Info that will be sent to Chromecast receiver (aside from Studio DRM info)
-
getHttpHeaders
- Returns:
- HTTP Headers to include with requests for this media file.
-
getImaDaiSettings
- Returns:
- The IMA DAI settings for this playlist item
-
getExternalMetadata
- Returns:
- The External Metadata for this playlist Item
-
describeContents
public int describeContents() -
writeToParcel
public void writeToParcel(Parcel dest, int flags)
-