-
Notifications
You must be signed in to change notification settings - Fork 6
Issue With Apple Media Service Library #8
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
Comments
Thanks @smczech! Do you have the full back trace available? That would better point to where we need to update. |
Hi! This is so weird! I was playing around with this on my MacBook last weekend when I was getting the Blue Oyster Cult error. To give you the traceback, I hooked it up to my iMac and Blue Oyster Cult appeared just fine on the screen with the umlaut! BUT, when I changed to the next track, it bombed just like others are getting in the other issue for this library. It seems to be when you change tracks from the phone where it bombs: code.py output: |
@smczech yay for ble! :-) I think the next step would be to print out the packet before this error occurs to see what it is. |
Hi! I'm sorry I don't know how to print the packet. I do see the packet size is 3 so that's why the error is getting raised. Can you tell me how to properly print the packet? |
I noticed I can re-create the error every time by selecting a different song instead of hitting next or previous track. |
Hi! I took more time with this to print the buffer. I don't really understand how it works. I was playing Machine Gun Kelly - "drunk face", then switched the song to "forget me too". The album name is Tickets to My Downfall. Packet length: 13 |
This is a huge first step! Reproducing an error is one of the trickiest parts. Can you share your edited code on github? I'd like to see how you are printing it off. I suspect this is an issue where we take the |
Hi! I didn't do a whole lot but added a few print statements to the adafruit_ble_apple_media.py file. I bolded/italicized them. I probably should study more about what this is all doing but there's definitely something wrong with this code. @staticmethod |
Ok, I suspect this is a quirk of how the media service works. I suspect that it's returning playback info that is empty. The docs say it should be three comma separated values but don't talk about what happens when a song is stopped. I think if you change the if check to |
WOW! That worked great! Thanks so much for taking the time to help troubleshoot this! |
Great! Would you mind making a PR with the change? |
Hi!
I followed the tutorial Now Playing: Bluetooth Apple Media Service Display and got it working with my Circuit Playground Bluefruit/TFT Gizmo, but it bombs when I play a Blue Oyster Cult song. I get this: RuntimeError: packet too short.
I figured out that it's because it is Blue Öyster Cult with the umlaut above the O. If I modify the code to not display the artist, it works fine so it must be the umlaut. If I print the artist name to the bottom of the editor while it's running I get this: Artist: Blue Ã�yster Cult.
The text was updated successfully, but these errors were encountered: