New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ongoing Media Notification for Wear not working with certain media #29
Comments
These examples are just a reproduction - I've been having consistent issues for months with this behaviour for different media apps (not open source). The podcast player app works reliably, but the radio streaming app and the music app don't work. I have been assuming that it's something I've configured wrong/differently in these apps, but when I tried switching the media to test something else it started working. Hence this reproduction which only changes the media url. The Radio Stream (not working) is MediaSource: androidx.media3.exoplayer.hls.HlsMediaSource |
Some debug with Not Working
Working
|
I'm also talking with someone on the Wear as it could definitely be on the side handling the notification. |
Sorry but I don't understand what you are trying to achieve and what the expected behaviour is. What component of AndroidX Media3 are you using? What is the observed behaviour of this component and what is what you would expect. I understand you want to make a notification being shown on Wear OS and this seems not to work. Are you using the session demo app for this as is? Can you please make you issue actionable by giving me some reproduction steps that I could follow to look into the problem you are describing? |
The reproduction is in the linked commit yschimke@637b487 or https://github.com/yschimke/media/tree/wear
There is a test you can run against a wear emulator, it uses the session demo. The test doesn't fail but you can visually see the difference in the ongoing notification from the screenshots I included. I'm using Media3 ExoPlayer in a service, and connecting to it via Media3 MediaBrowser. I'd like Media Notification to work reliably, but I'm seeing different behaviour for different streams as described above. Let me know what else I can do to make it actionable, I tried to get it to the point that you can reproduce within the sample apps you provided. What else would help here? |
The two has the two streams you can switch between.
That wasn't clear. |
This comment has been minimized.
This comment has been minimized.
@marcbaechinger I think Media3 alpha02 has fixed this, but I haven't confirmed 100%. I'll try to get it to fail again, but so far it looks good. |
I've also observed that the notification isn't cleared once the playback finishes normally, I'll take a look and file a separate bug if I can confirm that. |
Closing this as I haven't reproduced since alpha02 |
Test is here
testPlayCausesNotification
.yschimke@637b487
The test doesn't fail, the notification check succeeds, but the two media items in the test behave differently.
Podcast MP3 - Shows the ongoing notification and (with a real app not a test) the Media title in the recent app switcher.
Radio Stream - Doesn't show notification (or media title in app switcher)
Can reproduce on Devices (Samsung GW4, Suunto7) and Emulator (API 30).
Androidx Media3 - 1.0.0-alpha01
API 30 Emulator
The text was updated successfully, but these errors were encountered: