| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_IS_EXPLICIT |
static String |
KEY_MEDIA_ALBUM |
static String |
KEY_MEDIA_ARTIST |
static String |
KEY_MEDIA_IMAGE |
static String |
KEY_MEDIA_TITLE |
static String |
KEY_MEDIA_TYPE |
static String |
KEY_PLAYLIST_NAME |
static String |
KEY_QUEUE_CURRENT_TRACK_NUMBER |
static String |
KEY_QUEUE_PLAYBACK_DURATION |
static String |
KEY_QUEUE_PLAYBACK_PROGRESS |
static String |
KEY_QUEUE_TOTAL_TRACK_COUNT |
static String |
KEY_TRACK_PLAYBACK_DURATION |
static String |
KEY_TRACK_PLAYBACK_PROGRESS |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
MediaServiceData() |
MediaServiceData(Hashtable<String,Object> hash) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getIsExplicit() |
String |
getMediaAlbum()
Music: The name of the current album
Podcast: The name of the current podcast show
Audiobook: The name of the current book
|
String |
getMediaArtist()
Music: The name of the current album artist
Podcast: The provider of the podcast (hosts, network, company)
Audiobook: The book author's name
|
Image |
getMediaImage()
Returns the media image associated with the currently playing media
Music: The album art of the current track
Podcast: The podcast or chapter artwork of the current podcast episode
Audiobook: The book or chapter artwork of the current audiobook
|
String |
getMediaTitle()
Music: The name of the current track
Podcast: The name of the current episode
Audiobook: The name of the current chapter
|
MediaType |
getMediaType() |
String |
getPlaylistName()
Music: The name of the playlist or radio station, if the user is playing from a playlist, otherwise, Null
Podcast: The name of the playlist, if the user is playing from a playlist, otherwise, Null
Audiobook: Likely not applicable, possibly a collection or "playlist" of books
|
Integer |
getQueueCurrentTrackNumber()
Music: The current number (1 based) of the track in the playback queue
Podcast: The current number (1 based) of the episode in the playback queue
Audiobook: The current number (1 based) of the episode in the playback queue (e.g.
|
Integer |
getQueuePlaybackDuration()
Music: The total duration of the playback queue in seconds
Podcast: The total duration of the playback queue in seconds
Audiobook: The total duration of the playback queue (e.g.
|
Integer |
getQueuePlaybackProgress()
Music: The current progress of the playback queue in seconds
Podcast: The current progress of the playback queue in seconds
Audiobook: The current progress of the playback queue (e.g.
|
Integer |
getQueueTotalTrackCount()
Music: The total number of tracks in the playback queue
Podcast: The total number of episodes in the playback queue
Audiobook: The total number of sections in the playback queue (e.g.
|
Integer |
getTrackPlaybackDuration()
Music: The total duration of the track in seconds
Podcast: The total duration of the episode in seconds
Audiobook: The total duration of the current segment (e.g.
|
Integer |
getTrackPlaybackProgress()
Music: The current progress of the track in seconds
Podcast: The current progress of the episode in seconds
Audiobook: The current progress of the current segment (e.g.
|
MediaServiceData |
setIsExplicit(Boolean isExplicit) |
MediaServiceData |
setMediaAlbum(String mediaAlbum)
Music: The name of the current album
Podcast: The name of the current podcast show
Audiobook: The name of the current book
|
MediaServiceData |
setMediaArtist(String mediaArtist)
Music: The name of the current album artist
Podcast: The provider of the podcast (hosts, network, company)
Audiobook: The book author's name
|
MediaServiceData |
setMediaImage(Image mediaImage)
Sets the media image associated with the currently playing media
Music: The album art of the current track
Podcast: The podcast or chapter artwork of the current podcast episode
Audiobook: The book or chapter artwork of the current audiobook
|
MediaServiceData |
setMediaTitle(String mediaTitle)
Music: The name of the current track
Podcast: The name of the current episode
Audiobook: The name of the current chapter
|
MediaServiceData |
setMediaType(MediaType mediaType) |
MediaServiceData |
setPlaylistName(String playlistName)
Music: The name of the playlist or radio station, if the user is playing from a playlist, otherwise, Null
Podcast: The name of the playlist, if the user is playing from a playlist, otherwise, Null
Audiobook: Likely not applicable, possibly a collection or "playlist" of books
|
MediaServiceData |
setQueueCurrentTrackNumber(Integer queueCurrentTrackNumber)
Music: The current number (1 based) of the track in the playback queue
Podcast: The current number (1 based) of the episode in the playback queue
Audiobook: The current number (1 based) of the episode in the playback queue (e.g.
|
MediaServiceData |
setQueuePlaybackDuration(Integer queuePlaybackDuration)
Music: The total duration of the playback queue in seconds
Podcast: The total duration of the playback queue in seconds
Audiobook: The total duration of the playback queue (e.g.
|
MediaServiceData |
setQueuePlaybackProgress(Integer queuePlaybackProgress)
Music: The current progress of the playback queue in seconds
Podcast: The current progress of the playback queue in seconds
Audiobook: The current progress of the playback queue (e.g.
|
MediaServiceData |
setQueueTotalTrackCount(Integer queueTotalTrackCount)
Music: The total number of tracks in the playback queue
Podcast: The total number of episodes in the playback queue
Audiobook: The total number of sections in the playback queue (e.g.
|
MediaServiceData |
setTrackPlaybackDuration(Integer trackPlaybackDuration)
Music: The total duration of the track in seconds
Podcast: The total duration of the episode in seconds
Audiobook: The total duration of the current segment (e.g.
|
MediaServiceData |
setTrackPlaybackProgress(Integer trackPlaybackProgress)
Music: The current progress of the track in seconds
Podcast: The current progress of the episode in seconds
Audiobook: The current progress of the current segment (e.g.
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_MEDIA_TYPE
public static final String KEY_MEDIA_TITLE
public static final String KEY_MEDIA_ARTIST
public static final String KEY_MEDIA_ALBUM
public static final String KEY_MEDIA_IMAGE
public static final String KEY_PLAYLIST_NAME
public static final String KEY_IS_EXPLICIT
public static final String KEY_TRACK_PLAYBACK_PROGRESS
public static final String KEY_TRACK_PLAYBACK_DURATION
public static final String KEY_QUEUE_PLAYBACK_PROGRESS
public static final String KEY_QUEUE_PLAYBACK_DURATION
public static final String KEY_QUEUE_CURRENT_TRACK_NUMBER
public static final String KEY_QUEUE_TOTAL_TRACK_COUNT
public MediaServiceData setMediaType(MediaType mediaType)
mediaType - - The type of the currently playing or paused track.public MediaType getMediaType()
public MediaServiceData setMediaTitle(String mediaTitle)
mediaTitle - -public String getMediaTitle()
public MediaServiceData setMediaArtist(String mediaArtist)
mediaArtist - -public String getMediaArtist()
public MediaServiceData setMediaAlbum(String mediaAlbum)
mediaAlbum - -public String getMediaAlbum()
public MediaServiceData setMediaImage(Image mediaImage)
mediaImage - public Image getMediaImage()
public MediaServiceData setPlaylistName(String playlistName)
playlistName - -public String getPlaylistName()
public MediaServiceData setIsExplicit(Boolean isExplicit)
isExplicit - - Whether or not the content currently playing (e.g. the track, episode, or book) contains explicit contentpublic Boolean getIsExplicit()
public MediaServiceData setTrackPlaybackProgress(Integer trackPlaybackProgress)
trackPlaybackProgress - -public Integer getTrackPlaybackProgress()
public MediaServiceData setTrackPlaybackDuration(Integer trackPlaybackDuration)
trackPlaybackDuration - -public Integer getTrackPlaybackDuration()
public MediaServiceData setQueuePlaybackProgress(Integer queuePlaybackProgress)
queuePlaybackProgress - -public Integer getQueuePlaybackProgress()
public MediaServiceData setQueuePlaybackDuration(Integer queuePlaybackDuration)
queuePlaybackDuration - -public Integer getQueuePlaybackDuration()
public MediaServiceData setQueueCurrentTrackNumber(Integer queueCurrentTrackNumber)
queueCurrentTrackNumber - -public Integer getQueueCurrentTrackNumber()
public MediaServiceData setQueueTotalTrackCount(Integer queueTotalTrackCount)
queueTotalTrackCount - -public Integer getQueueTotalTrackCount()