Questions tagged [android-media3]
46 questions
0
votes
0 answers
Media 3 Player Not Play Video With Media Session
I'm making sample app with Media 3 It's working fine without media session but when i add media session in it it's give me error below I've attacehed code
AndroidManifest.xml

sukhbeer
- 240
- 1
- 7
0
votes
0 answers
media3 SimpleBasicPlayer handleSetPlayWhenReady
I'm implementing a MediaLibraryService, with my own player that based on SimpleBasicPlayer. My class, that's derived from SimpleBasicPlayer, implements handleSetPlayWhenReady. I see handleSetPlayWhenReady gets called when I expect. But the…

johngray1965
- 163
- 1
- 9
0
votes
1 answer
Jetpack Media3 Library with Compose: Service not in sync with ViewModel
I'm using Jetpack Media3 library alongside Jetpack Compose for playing audio. I have created a PlaybackService to manage media playback and I am using a ViewModel RadioViewModel to manage the UI logic in a composable function RadioView.
Here's a…

IdanB
- 167
- 1
- 3
- 13
0
votes
0 answers
Retrieve Byte Position of Seeked Video in ExoPlayer (Media3) for Partial Downloads
I'm streaming a video in ExoPlayer using Media3 while concurrently downloading it. This works well until I attempt to seek to an unbuffered position, causing it to hang. My aim is to let the user seek to any position, start downloading that…

Arsenius
- 4,972
- 4
- 26
- 39
0
votes
1 answer
How can I trigger a library update in Browsing view for Android Auto?
I have my media playback app working pretty well, the only issue from my testing, there is an edge case where media can be added on the phone, but it's not reflected in the browsing view in Android Auto until the phone is disconnected and…

Mike Macpherson
- 456
- 4
- 12
0
votes
1 answer
Exoplayer custom DataSource : read data from external network call
I need to get data from native network call with CPP. from native i am getting chunks of data as i strat to receive the response in native functions and i am appending byte[] to ByteArrayOutputStream. i have created a custom datasource and in Read…

deeppandya
- 43
- 1
- 8
0
votes
0 answers
Handle media button actions manually in media3
How can I manually handle media button actions with Media3 in a peaceful and compatible way without using MediaSessionConnector?
Previously, I used to handle media button commands using MediaSessionConnector and MediaSessionCompat, but due to…

imansdn
- 968
- 1
- 7
- 17
0
votes
1 answer
exoplayer MediaItem setClippingConfiguration not working if using CacheDataSource
my code is:
val mediaItem: MediaItem = MediaItem.Builder()
.setUri(recitationUri)
.setMediaId("$surah:${ayah}")
.setClippingConfiguration(
ClippingConfiguration.Builder()
…

Hadi Ahmadi
- 1,924
- 2
- 17
- 38
0
votes
0 answers
ExoPlayer: how to display subtitles with useController=false?
Using AndroidX Media3 ExoPlayer with useController=false and custom Jetpack Compose controls, how to make HLS embedded video subtitles automatically show up and provide a button to select/disable them?
NB: this is not the same question as How to…

Sébastien Dubois
- 869
- 9
- 19
0
votes
0 answers
Media3 generating a DASH manifest programatically
I am attempting to take a set of URLs, and their metadata then using that to generate a DASH manifest i can pass on to my player. I've got the majority of the functionality done, the problem I'm having is every single track being marked as…

Litleck
- 13
- 3
- 7
0
votes
0 answers
Media3 notification
I have followed the github link
Here is my code
private const val NOTIFICATION_ID = 200
private const val NOTIFICATION_CHANNEL_ID = "notification channel id 1"
class SimpleMediaNotificationManager(val context: Context, val player: Player) {
…

primo
- 1,340
- 3
- 12
- 40
0
votes
0 answers
MediaLibrarySession Causing ANR
I am developing a media playing app, in which I am using MediaLibraryService to play music in background. I am using Media3 libraries. I have created a playback service class and created instances of MediaController in MainActivity class. But during…

Hanif Khan
- 31
- 3
0
votes
0 answers
How to make exoplayer to adaptively changing quality?
I want make ExoPlayer if the internet speed is good to play high resolution vice versa to play in low resolution. I also used bandwitmether with default or custom initial bandwith estimate and AdaptiveTrackSelection.Factory. How can fix it to play…

terlan abaszade
- 29
- 5
0
votes
0 answers
CastPlayer: How to pause at the end of a media item, not to proceed to the next
I am developing an Android app using Cast in media3 v1.1.0. The CastPlayer automatically moves to the next media item when the playback of the current media item finishes. When there is only one media item in the media queue, the media becomes…

Malu
- 1
0
votes
0 answers
how to set tag or id for Exoplayer MediaSource?
I am using Exoplayer for playing multiple audio files.
We can set media an Id when creation using:
MediaItem.Builder()
.setUri(uri)
.setMediaId("my_unique_id")
and get media Item id in onMediaItemTransition listener using…

Hadi Ahmadi
- 1,924
- 2
- 17
- 38