Package com.jwplayer.pub.api.background
Class MediaService
java.lang.Object
Service
com.jwplayer.pub.api.background.MediaService
public class MediaService
extends Service
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doStartForeground
(MediaSessionHelper mediaSessionHelper, NotificationHelper notificationHelper, ServiceMediaApi serviceMediaApi) Starts the Service in foreground modeIBinder
onBind
(Intent intent) void
boolean
onUnbind
(Intent intent)
-
Field Details
-
mBinder
protected final IBinder mBinder -
mMediaSessionHelper
-
-
Constructor Details
-
MediaService
public MediaService()
-
-
Method Details
-
doStartForeground
public void doStartForeground(MediaSessionHelper mediaSessionHelper, NotificationHelper notificationHelper, ServiceMediaApi serviceMediaApi) Starts the Service in foreground mode- Parameters:
mediaSessionHelper
- Helps manage the media sessionnotificationHelper
- Helps manage the notificationserviceMediaApi
- Defines the player capabilities of the notification and media session
-
onBind
public IBinder onBind(Intent intent) -
onUnbind
public boolean onUnbind(Intent intent) -
onDestroy
public void onDestroy()
-