Api Video Player Notification Controller
class ApiVideoPlayerNotificationController constructor(context: Context, playerNotificationManager: PlayerNotificationManager, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG))
The api.video player notification controller class.
The ApiVideoPlayerController
uses the ApiVideoPlayerNotificationController
to display a notification when the player is launched.
Parameters
context
the application context
player Notification Manager
the PlayerNotificationManager to use
media Session
the MediaSessionCompat to use
Constructors
Link copied to clipboard
constructor(context: Context, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG), notificationId: Int = DEFAULT_NOTIFICATION_ID, channelId: String = DEFAULT_NOTIFICATION_CHANNEL_ID, @StringRes channelNameResourceId: Int = R.string.default_channel_name, @StringRes channelDescriptionResourceId: Int = 0, notificationStyle: NotificationStyle = NotificationStyle())
constructor(context: Context, playerNotificationManager: PlayerNotificationManager, mediaSession: MediaSessionCompat = MediaSessionCompat(context, TAG))