Questions tagged [android-media3]

46 questions
0
votes
1 answer

'com.google.android.exoplayer2.ui.StyledPlayerView' is deprecated

StyledPlayerView' is deprecated and is showing in android studio in Exoplayer 2.19 and google advised me to use AndroidX Media3 but I don't get anything on how to migrate to AndroidX Media3. can anyone write the sample code for this one? here is my…
0
votes
0 answers

ExoPlayer / Media3 HLS Live streaming no merge audio and video sources

I have not been able to play HLS streaming properly for a long time. I searched for an answer to this problem, but could not find a similar case anywhere. The problem is that after loading the streaming I have audio or video only but never both…
0
votes
1 answer

How to remove progress bar and 15s back and forth option in Media3 ExoPlayer in jetpack Compose

I am working with Media3 ExoPlayer in Jetpack Compose and I am trying to customize the player's control view. Specifically, I want to disable or remove the progress bar (the one that shows the playing status of the video) and the 15 seconds back and…
IdanB
  • 167
  • 1
  • 3
  • 13
0
votes
0 answers

Exoplayer media3 keeps displaying embedded artwork instead of metadata artwork in my music player - how can I fix this?

I am making a music player using Media3 ExoPlayer with Compose (Material 3). I am setting the metadata artwork uri, but once the song starts playing, it shows my artwork for a second but then quickly replaced by the embedded artwork. I am using the…
0
votes
0 answers

Unsupported codec for Media3 ExoPlayer

In my project I use Media3 ExoPlayer to play video. Problem: the stream I want to play is probably not supported. Links to some other streams work. build.gradle.kts: ... // Media3 ExoPlayer …
0
votes
2 answers

How to stop MediaLibraryService:media3 android

I want to stop a foreground service which extends MediaLibrarySession only after clicking a specific button on the activity, so i tried : val serviceIntent = Intent(this@PartyHostActivity,…
Ebrahim Karimi
  • 732
  • 8
  • 24
0
votes
0 answers

how to disable seeking on MediaStyle notification?

I working on a audio player like app and show audio progress and info on notification using media3. I want to show only progress on mediaStyle notification and the user does not able to change progress. I think I must set some value to the media…
0
votes
1 answer

how to change player notification title and large icon in Media3 in android 11+?

I using MediaSessionService from Media3 to play audio in background. I update player notification using setMediaNotificationProvider. but in android 11(API 30) and up, the title, content text, and large icon are not changing and showing default…
0
votes
1 answer

Failed to resolve SessionToken with media3

I'm trying to use media3 and for that I'm following the tutorial here: https://developer.android.com/guide/topics/media/media3/getting-started/playing-in-background However when I run my code I have the following error on this line: val sessionToken…
Xwilarg
  • 364
  • 1
  • 6
  • 16
0
votes
0 answers

Uri(getString(R.string.link.mp3)) in broadcasg reciever

I have created a fragment and brodcastreciever.I want to initialize exoplayer and its mediaitem from uri.broadcastReciever.I need to setUri by using getString(R.string.text)
0
votes
1 answer

Getting "UnrecognizedInputFormatException" with media3-exoplayer when streaming mp3 from onedrive

Very new to android programming, I am trying to implement media3-exoplayer in my app. I read the developer.adroid material and tried the basic scenario first but my mp3 wont play. Getting the below error everytime E/ExoPlayerImplInternal: Playback…
0
votes
1 answer

Migrate exoplayer exoplayer.downloadService.action.RESTART to media3

The Exoplayer states this requirement for "MyDownloadService" How to migrate it to media3? I couldn't find the RESTART on their documentation…
Rodrigo
  • 135
  • 4
  • 45
  • 107
0
votes
1 answer

media3 MediaSessionService dont start and crash after few seconds

I am trying to implement media3 mediaSessionService and play music. But service dont start, i dont see notification and after approximately 10sec app is crashing. I am using Sumsung a70 android 11. MyMusicService.kt @UnstableApi class MyMusicService…
0
votes
0 answers

Android media3 exoplayer MediaController: Send fake messages to trigger Player.Listener

I need to trigger a fake event to process the current progress with a flow and update the UI. I've got following function which belongs to ViewModel A: val listener = object : Player.Listener { override fun onEvents(player: Player, events:…
Franklin84
  • 463
  • 1
  • 6
  • 20
0
votes
1 answer

Android Auto isn't automatically binding to MediaBrowserService or MediaLibraryService

I'm trying to add Android Auto capability to my existing app. It's a messaging app, but some messages have an audio attachment. So far, I was successfully able to create a CarAppService to display the messages themselves, but I can't seem to be able…
user496854
  • 6,461
  • 10
  • 47
  • 84