feat(android): upgrade dependencies / media3 1.4.1 / androidxCore to 1.13.1 / androidxActivity 1.8.2 (#4173)
This commit is contained in:
parent
24d90e9ec8
commit
e57c7bda5d
@ -216,7 +216,7 @@ dependencies {
|
|||||||
//noinspection GradleDynamicVersion
|
//noinspection GradleDynamicVersion
|
||||||
implementation "com.facebook.react:react-native:+"
|
implementation "com.facebook.react:react-native:+"
|
||||||
|
|
||||||
implementation "androidx.core:core:$androidxCore_version"
|
implementation "androidx.core:core-ktx:$androidxCore_version"
|
||||||
implementation "androidx.activity:activity-ktx:$androidxActivity_version"
|
implementation "androidx.activity:activity-ktx:$androidxActivity_version"
|
||||||
|
|
||||||
// For media playback using ExoPlayer
|
// For media playback using ExoPlayer
|
||||||
|
@ -4,12 +4,12 @@ RNVideo_targetSdkVersion=34
|
|||||||
RNVideo_compileSdkVersion=34
|
RNVideo_compileSdkVersion=34
|
||||||
RNVideo_ndkversion=26.1.10909125
|
RNVideo_ndkversion=26.1.10909125
|
||||||
RNVideo_buildToolsVersion=34.0.0
|
RNVideo_buildToolsVersion=34.0.0
|
||||||
RNVideo_media3Version=1.3.1
|
RNVideo_media3Version=1.4.1
|
||||||
RNVideo_useExoplayerIMA=false
|
RNVideo_useExoplayerIMA=false
|
||||||
RNVideo_useExoplayerRtsp=false
|
RNVideo_useExoplayerRtsp=false
|
||||||
RNVideo_useExoplayerSmoothStreaming=true
|
RNVideo_useExoplayerSmoothStreaming=true
|
||||||
RNVideo_useExoplayerDash=true
|
RNVideo_useExoplayerDash=true
|
||||||
RNVideo_useExoplayerHls=true
|
RNVideo_useExoplayerHls=true
|
||||||
RNVideo_androidxCoreVersion=1.9.0
|
RNVideo_androidxCoreVersion=1.13.1
|
||||||
RNVideo_androidxActivityVersion=1.7.0
|
RNVideo_androidxActivityVersion=1.8.2
|
||||||
RNVideo_buildFromMedia3Source=false
|
RNVideo_buildFromMedia3Source=false
|
||||||
|
@ -179,17 +179,17 @@ class VideoPlaybackService : MediaSessionService() {
|
|||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
.setSmallIcon(androidx.media3.session.R.drawable.media3_icon_circular_play)
|
.setSmallIcon(androidx.media3.session.R.drawable.media3_icon_circular_play)
|
||||||
// Add media control buttons that invoke intents in your media service
|
// Add media control buttons that invoke intents in your media service
|
||||||
.addAction(androidx.media3.session.R.drawable.media3_notification_seek_back, "Seek Backward", seekBackwardPendingIntent) // #0
|
.addAction(androidx.media3.session.R.drawable.media3_icon_rewind, "Seek Backward", seekBackwardPendingIntent) // #0
|
||||||
.addAction(
|
.addAction(
|
||||||
if (session.player.isPlaying) {
|
if (session.player.isPlaying) {
|
||||||
androidx.media3.session.R.drawable.media3_notification_pause
|
androidx.media3.session.R.drawable.media3_icon_pause
|
||||||
} else {
|
} else {
|
||||||
androidx.media3.session.R.drawable.media3_notification_play
|
androidx.media3.session.R.drawable.media3_icon_play
|
||||||
},
|
},
|
||||||
"Toggle Play",
|
"Toggle Play",
|
||||||
togglePlayPendingIntent
|
togglePlayPendingIntent
|
||||||
) // #1
|
) // #1
|
||||||
.addAction(androidx.media3.session.R.drawable.media3_notification_seek_forward, "Seek Forward", seekForwardPendingIntent) // #2
|
.addAction(androidx.media3.session.R.drawable.media3_icon_fast_forward, "Seek Forward", seekForwardPendingIntent) // #2
|
||||||
// Apply the media style template
|
// Apply the media style template
|
||||||
.setStyle(MediaStyleNotificationHelper.MediaStyle(session).setShowActionsInCompactView(0, 1, 2))
|
.setStyle(MediaStyleNotificationHelper.MediaStyle(session).setShowActionsInCompactView(0, 1, 2))
|
||||||
.setContentTitle(session.player.mediaMetadata.title)
|
.setContentTitle(session.player.mediaMetadata.title)
|
||||||
|
Loading…
Reference in New Issue
Block a user