setMediaNotificationTapIntent

abstract fun setMediaNotificationTapIntent(pendingIntent: PendingIntent)

Sets the android.app.PendingIntent to be triggered when a user taps on a media notification associated with the player.

This allows host apps to specify a custom activity to launch when a user taps the media notification.

It's strongly recommended that the activity being referenced by the PendingIntent is declared with a SINGLE_TOP launch_mode in AndroidManifest.xml. This helps to avoid launching a new, different instance of the activity that's currently hosting the video playback.

Parameters

pendingIntent

PendingIntent to be triggered upon notification tap.