ryanheise / just_audio

Audio Player
1.05k stars 676 forks source link

Customizing Notification Controls #1159

Closed Joe2316 closed 10 months ago

Joe2316 commented 10 months ago

Which API doesn't behave as documented, and how does it misbehave? I'm using just_audio_background package version 0.0.1-beta.11 for my flutter app and I'm seeking assistance in customizing the notification controls. Specifically, I want to either disable the next and previous buttons in the notifications or hide the notifications entirely. Thank you.

Minimal reproduction project The example.

I attempted to use androidNotificationOngoing: false but the notifications are still showing.

await JustAudioBackground.init( androidNotificationChannelId: 'com.ryanheise.bg_demo.channel.audio', androidNotificationChannelName: 'Audio playback', androidNotificationOngoing: false, );

To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Error messages None

If applicable, copy & paste error message here, within the triple quotes to preserve formatting.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots None

Desktop (please complete the following information):

Smartphone (please complete the following information):

Flutter SDK version [√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.22631.2506], locale en-NZ) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Android Studio (version 2022.3) [√] VS Code (version 1.84.2) [√] Connected device (3 available) [√] Network resources insert output of "flutter doctor" here



**Additional context**
Add any other context about the problem here.
ryanheise commented 10 months ago

:-1: This is now your third invalid issue. You clicked on "bug report" but what you submitted was not actually a bug report. I do not have time to deal with invalid issues, so please stop posting further issues. It is making it very difficult for me to get around to the valid issues submitted by other people.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.