[Enhancement]: Add support for HID Consumer control Play/Pause #1602

Closed
opened 2026-04-24 23:51:19 +02:00 by adam · 4 comments
Owner

Originally created by @bigdoug2005 on GitHub (Dec 19, 2023).

Describe the feature/enhancement

Describe the feature
On iOS the Audiobookshelf app does not appear to react to the HID Consumer control play/pause toggle command 0xCD. The individual play and pause commands work 0xB1 and 0xB0.

Audiobookshelf version
iOS 0.9.68-beta

Originally created by @bigdoug2005 on GitHub (Dec 19, 2023). ### Describe the feature/enhancement **Describe the feature** On iOS the Audiobookshelf app does not appear to react to the HID Consumer control play/pause toggle command 0xCD. The individual play and pause commands work 0xB1 and 0xB0. **Audiobookshelf version** iOS 0.9.68-beta
adam added the enhancement label 2026-04-24 23:51:19 +02:00
adam closed this issue 2026-04-24 23:51:19 +02:00
Author
Owner

@Sapd commented on GitHub (Dec 19, 2023):

(The issue is in the wrong repo).

But Probably an easy fix:
https://github.com/advplyr/audiobookshelf-app/blob/793f0c05f7d54d6c95759b6b7daaa78c71e28478/ios/App/Shared/player/AudioPlayer.swift#L579-L593

Of MPRemoteCommandCenter play and pausecommand is implemented, however togglePlayPause has been forgotten: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618992-toggleplaypausecommand

@Sapd commented on GitHub (Dec 19, 2023): (The issue is in the wrong repo). But Probably an easy fix: https://github.com/advplyr/audiobookshelf-app/blob/793f0c05f7d54d6c95759b6b7daaa78c71e28478/ios/App/Shared/player/AudioPlayer.swift#L579-L593 Of `MPRemoteCommandCenter` play and pausecommand is implemented, however `togglePlayPause` has been forgotten: https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter/1618992-toggleplaypausecommand
Author
Owner

@advplyr commented on GitHub (Dec 19, 2023):

Is this a duplicate of https://github.com/advplyr/audiobookshelf-app/issues/622?

@advplyr commented on GitHub (Dec 19, 2023): Is this a duplicate of https://github.com/advplyr/audiobookshelf-app/issues/622?
Author
Owner

@KaiStarkk commented on GitHub (Dec 20, 2023):

Is this a duplicate of advplyr/audiobookshelf-app#622?

Duplicate as noted above. There is a proposed fix, just waiting on testing. I don’t have a macOS dev environment to test (virtualising is against their TOS on non Apple hardware) but am looking into it. Any other devs with Xcode welcome to take it

@KaiStarkk commented on GitHub (Dec 20, 2023): > Is this a duplicate of [advplyr/audiobookshelf-app#622](https://github.com/advplyr/audiobookshelf-app/issues/622)? Duplicate as noted above. There is a proposed fix, just waiting on testing. I don’t have a macOS dev environment to test (virtualising is against their TOS on non Apple hardware) but am looking into it. Any other devs with Xcode welcome to take it
Author
Owner

@advplyr commented on GitHub (Dec 20, 2023):

Duplicate of https://github.com/advplyr/audiobookshelf-app/issues/622

@advplyr commented on GitHub (Dec 20, 2023): Duplicate of https://github.com/advplyr/audiobookshelf-app/issues/622
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1602