-
public interface MediaPlayer.Listener
-
-
Method Summary
Modifier and Type Method Description abstract LocatorlocatorFromMediaId(String mediaId, Bundle extras)abstract Bitmap)>coverOfPublication(Publication publication, <ERROR CLASS> publicationId)abstract UnitonNotificationPosted(Integer notificationId, Notification notification)abstract UnitonNotificationCancelled(Integer notificationId)abstract BooleanonCommand(String command, Bundle args, ResultReceiver cb)abstract UnitonPlayerStopped()abstract UnitonResourceLoadFailed(Link link, ReadError error)Called when a resource failed to be loaded, for example because the Internet connection is offline and the resource is streamed. abstract MediaPlayer.NotificationMetadata,Link)>onCreateNotificationMetadata(Publication publication, <ERROR CLASS> publicationId, Link link)Creates the NotificationMetadata for the given resource ,Link)>link. -
-
Method Detail
-
locatorFromMediaId
abstract Locator locatorFromMediaId(String mediaId, Bundle extras)
-
coverOfPublication
abstract Bitmap )>coverOfPublication(Publication publication, <ERROR CLASS> publicationId)
-
onNotificationPosted
abstract Unit onNotificationPosted(Integer notificationId, Notification notification)
-
onNotificationCancelled
abstract Unit onNotificationCancelled(Integer notificationId)
-
onCommand
abstract Boolean onCommand(String command, Bundle args, ResultReceiver cb)
-
onPlayerStopped
abstract Unit onPlayerStopped()
-
onResourceLoadFailed
abstract Unit onResourceLoadFailed(Link link, ReadError error)
Called when a resource failed to be loaded, for example because the Internet connection is offline and the resource is streamed.
-
onCreateNotificationMetadata
abstract MediaPlayer.NotificationMetadata ,Link)>onCreateNotificationMetadata(Publication publication, <ERROR CLASS> publicationId, Link link)
Creates the NotificationMetadata for the given resource ,Link)>link.
The metadata will be used for the media-style notification.
-
-
-
-