Skip to content
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

Can't close player in notification bar when playing from downloads #4663

Closed
3 tasks done
x-0D opened this issue Aug 29, 2023 · 5 comments · Fixed by #4718
Closed
3 tasks done

Can't close player in notification bar when playing from downloads #4663

x-0D opened this issue Aug 29, 2023 · 5 comments · Fixed by #4718
Labels
bug Something isn't working

Comments

@x-0D
Copy link

x-0D commented Aug 29, 2023

Steps to reproduce

  1. Open Libretube
  2. play any video in background
  3. Check notification bar, player notification is there.
  4. Go to libretube, close video
  5. Notification keep showing and can't be closed

Expected behavior

If video ends - unlock notification to be closed.
If Libretube open in foreground - remove player notification
If Libretube closed - remove player notification

Actual behavior

(Screenshot blurred to keep private.)

Libretube is closed, but player in notification area is hang up.

IMG_20230829_215215

LibreTube version

0.17.1

Android version

Android 13

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@x-0D x-0D added the bug Something isn't working label Aug 29, 2023
@catgangdev
Copy link

Are you using pin media player option from rom settings?

@x-0D
Copy link
Author

x-0D commented Aug 30, 2023

At MIUI, there's no pin media player option, I can't find it, people said it's hidden.

@x-0D
Copy link
Author

x-0D commented Aug 30, 2023

Possible, it's MIUI bug.

Solution:
https://xiaomi.eu/community/threads/21-5-12-13.61262/page-8#post-607715

Guide copy for archiving solution.

  1. Plug your phone to your computer without allowing transfert files or photos (keep "charge only" mode)

  2. Go in phone's settings => My Device => All specs => Tap 7~10 times on the "MIUI Version" tile (until you see "You are now a developer" message)

  3. Go back in main settings menu => Additional settings => Developer options (at the bottom) => Enable "USB debugging (Security Settings)" option then enable "USB debugging" option (tick then "OK" to confirm)

  4. A pop-up will ask you to authorize ADB via USB => Allow

  5. On your computer, open a command-prompt window and type this command: adb devices

  6. If you see - for the last line - something like this: 12345678________device then you can continue! :)

  7. Type this command: adb shell settings put secure qs_media_resumption 0

  8. Done! You can unplug your phone from your computer and disable "USB debugging (Security Settings)" and "USB debugging" options (in developer options page). Then you can also hide the "Developer options" menu => Disable the first option in developer options page then tap "back arrow" icon (top-left) 2 times. ;)

I'm not sure if it fully works or if it works at all, but removing the notification is now possible.

@Bnyro
Copy link
Member

Bnyro commented Aug 30, 2023

Can't reproduce the issue on Stock Android 13.

@Bnyro
Copy link
Member

Bnyro commented Sep 4, 2023

I can reproduce this when playing videos offline, so I intend to fix it for this one. However, with the normal video player, this looks like a device side issue.

@Bnyro Bnyro changed the title Can't close player in notification bar Can't close player in notification bar when playing from downloads Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants