adafruit / adafruit/Adafruit_CircuitPython_BLE_Apple_Media

Picking new tracks in Music and Podcast apps cause error

Open
#3 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
12
Forks
6
PR merge metrics
No merged PRs in 30d

Description

With CPB paired and ble_apple_media_simpletest.py running, outputting messages to REPL, there is an error thrown when picking new tracks by name (not with >> button):
`Traceback (most recent call last):
File "code.py", line 33, in
File "/lib/adafruit_ble_apple_media.py", line 106, in __get__
File "/lib/adafruit_ble_apple_media.py", line 100, in _update
RuntimeError: packet too short`

This is with the iOS native default Music app and Podcast app.

Same error is also thrown when you close the Music app, even if no music is currently playing.

This does not happen in Spotify. This does not happen if the track ends and moves to the next track on its own, either.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with lib/adafruit_ble_apple_media.py at __get__ and _update, then reproduce the error using ble_apple_media_simpletest.py with a paired CPB. Compare selecting tracks and closing the Music or Podcast app against Spotify and automatic track changes. Done means those native-app actions no longer raise RuntimeError: packet too short.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.