-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Error upon pressing media buttons from other apps #1242
Comments
email button is fixed again. |
@karyogamy implemented media button interface in v0.13.0 I wonder why its not working. |
@theScrabi |
@karyogamy, Umm that isn't actually the case. I'm well aware of trying to start a player when no content is previously playing causes issues even with other apps. My custom widget is designed to just control the state of the current player only when there is some content loaded. Like for example pausing a song that is running and then resuming it a minute or two later. The issue crops up immediately after pressing pause, and i tested it out and the same goes for recently paused content and then pressing play. Either way the error appears in anyway I try Pausing, Resuming and Starting Playback (which again is something I don't actually do.) It seems newpipe only wants me to control it inside the app or through the notification controls. Any other control inputs that aren't from the app itself causes a crash. |
From the media button reciever reference page:
So, it's possible that the error you are seeing is stemming from the manifest not having those intent filters on the player services. However, I am unable to reproduce the exception since the media controls on Kustom Live Wallpaper and Kustom Widget doesn't seem to work on my devices, so I can't verify that this issue is resolved. That being said, the manifest will be updated with the intent filters, so they are consistent with the reference implementation. |
Try setting the preferred music player to NewPipe in Kustom widget or Kustom Live Wallpaper. It should force the play/pause commands directly into newpipe. |
That fixed it, thanks =D And here's the fix. This change designates the background player as our default player when a media button event from an external app is directed at newpipe, so maybe we will need to discuss about this. Still, starting playback when the player is not running is still not working, though it won't crash the app anymore. We can later have another PR to introduce play queue saving on player exit, along with a proper media browser service. |
Nice, let's see hopefully both problems doesn't crop up again. That queue idea sounds amazing. I'll keep an eye out for it then. ;) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Could you test if #3178 fixes this issue? |
The app is unable to handle media buttons inputs that come from other apps installed. For example Kustom Live Wallpaper, Kustom Widget, Music Boss, and the Pebble app (with using a pebble smartwatch of course) crashes the app. The error reporter shows an ui error.
Might as well add a request since this bug needs some fixing and its related. Would be nice if Newpipe would share player details. Like for example what's the current song (or video) info (Title & Artist, track duration, and current track position) This info is quite useful for the apps mentioned above.
Here are the error details that the Newpipe reports.
PS your report via email button is broken too. :P
The text was updated successfully, but these errors were encountered: