Questions tagged [android-media3]
46 questions
4
votes
1 answer
How does Android Auto pagination work with media3?
So as the question says: I'm trying to get pagination working for Android Auto with media3, but the documentation seems to be either lacking or I can't find it.
I currently have a MediaService that extends MediaLibraryService
class MediaService :…

gookman
- 2,527
- 2
- 20
- 28
2
votes
1 answer
How to set bitrate and FPS in Media3 Transformer
I want to compress videos for sharing in my Android app. These are my preferred settings:
Resolution: 1280x720
Container: MP4
Video codec: H.264
Video bitrate: 3 Mbit/s
Video FPS: 30
Audio codec: AAC
Audio sampling rate: 44100
Audio bitrate:…

ShahiM
- 3,179
- 1
- 33
- 58
2
votes
1 answer
stop media session service when the user remove the notification Media3
I am in the phase where I migrate my app from Exoplayer to jetpack Media3 and I want to stop my MediaSessionService once the user delete the notification but in the
MediaNotification.Provider we could not catch the event when the user deletes the…

DoctorDoom
- 501
- 2
- 8
- 21
2
votes
4 answers
How to modify the auto generated media3 notification?
I build a web radio player with Media3 1.0.0-beta03. I use the sample code from
Developers page.
It's generated a media notification automatically but I don't know how to add Title and sub title to this.
Here is my media service:
class…

István
- 43
- 6
1
vote
1 answer
Exoplayer HLS Adaptive Streaming selecting track variant per network bandwidth
I am using Exoplayer in my Android app for streaming hls audio, I am trying to play adaptive stream using my master HLS playlist which contains various variant of the same audio track but in different bitrate as per suitable available network…

MrinmoyMk
- 551
- 7
- 21
1
vote
0 answers
How to get the duration of a MediaItem in AndroidX Media3?
I am using the AndroidX Media3 Transformer to trim a video file, but I can't figure out how to get the duration of the video (without spinning up a player). An earlier answer suggested using MediaMetadataRetriever, but this is part of the old Media…

big_m
- 1,408
- 1
- 12
- 24
1
vote
1 answer
How to display HLS subtitles with ExoPlayer 3 and Compose?
How can I display HLS embedded subtitles using AndroidX Media3 ExoPlayer and Jetpack Compose?
Below is what I tried but no subtitles show up, nor does any button to show/hide them. Thanks for your help!
@Composable
fun MyPlayer() {
val hlsUri =…

Sébastien Dubois
- 869
- 9
- 19
1
vote
1 answer
Player Notification Manager
I use jetpack compose media3 and I heve this bug
I need help to fix it
setChannelNameResourceId(R.string.notification_channel)
setChannelDescriptionResourceId(R.string.notification_channel_description)
api33 media3
notification_channel not…

H M Z
- 11
- 2
0
votes
0 answers
Play AAC encoded Webstream in NEW media3.exoPlayer
I'm trying to create a simple Jetpack Compose, Kotlin app that plays this RAW aac encoded webstream. Found out that the basic mediaPlayer doesn't support AAC encoded files, so after some digging I found that media3's exoPlayer is probably the most…

John Carraher
- 53
- 9
0
votes
0 answers
ExoPlaybackException: Source error when trying to play audio file
I'm trying to play any audio file from local storage in my android app (music player). for obtaining audio files I use MediaStore.query to obtain audio file data, and for playing them I want to use the same data provided earlier.
this is how I'm…

Farbod Bijary
- 1
- 1
- 2
0
votes
0 answers
Fatal Exception: android.app.RemoteServiceException: Bad notification for startForeground when using setMediaNotificationProvider in media3
I have made a music app recently using media3 version 1.1.0. I was trying to customize the media notification by using setMediaNotificationProvider in onCreate of my MediaSessionService. This is my configuration
setMediaNotificationProvider(object :…

Thái Quốc Toàn
- 115
- 1
- 8
0
votes
2 answers
Initial loading of a video file in Media3 ExoPlayer takes too long
I have a local HTTP server where I'm hosting an MP4 file (about 50MB). I set up the following Composable in my app:
@Composable
private fun VideoItem(
url: String,
modifier: Modifier = Modifier
) {
val context = LocalContext.current
…

Sharp
- 1,335
- 1
- 12
- 27
0
votes
1 answer
Need to add video quality change feature in androix.media3.exoPlayer with HLS(Http Lve Streaming)
I have built a media player to play some HLS urls. It is media3.exoPlayer. Now I want to add a feature where user can change the quality of the video stream. I found something here …

Chandresh 204
- 151
- 6
0
votes
1 answer
How to set start and end time of live video playback in ExoPlayer
Hi, I have a live TV show that starts at 08:00 and ends at 10:00, can I set the start and end time of the TV show for the DefaultTimeBar ?
Tried :
exoPlayerProgress.setDuration(60_000)
and
MediaItem.Builder()
.setUri(mUrl)
…

Shih
- 181
- 1
- 4
0
votes
1 answer
Hide the seekBar in PlayerNotificationManager media 3
As mentioned in the title I would like to hide the seekbar from the notification when playing a live audio. Is there a way to customize the notification and achieve this behavior ?
Thank you for your help
Unless I missed it, I can't find the info in…

Bilel
- 81
- 5