LeoKlaus / plappa

An Audiobook client for Jellyfin and AudioBookShelf, written in Swift/SwiftUI.
https://plappa.me
159 stars 0 forks source link

[Feature Request] Integration with iOS Shortcuts/Automation #125

Closed ddman2 closed 1 week ago

ddman2 commented 2 weeks ago

Feature Request: Integration with iOS Shortcuts/Automation

Summary It would be great to have integration of Plappa with iOS Shortcuts/Automation to enable users to automate tasks such as starting the playback of the current audiobook.

Description Please provide support for iOS Shortcuts by exposing actions that can be used within the Shortcuts app. Specifically, the ability to:

Start playing the current audiobook.
Pause playback.
Skip to the next chapter.

These actions will allow users to create custom automation, such as starting audiobook playback when connecting to CarPlay.

For more information on how to integrate with the Shortcuts app, please refer to Apple's Shortcuts API documentation.

Implementation Expose Actions: Add actions like "Start Current Audiobook," "Pause Playback," and "Skip Chapter" to the iOS Shortcuts app.

Thank you for considering this feature request.

LeoKlaus commented 2 weeks ago

I love this idea! I'm currently using a shortcut myself to start playback whenever my phone connects to my car stereo but this would be much more elegant.

ddman2 commented 2 weeks ago

Which action(s) are you using to initiate playback? I am currently using:

and it's not always working.

LeoKlaus commented 2 weeks ago

Which action(s) are you using to initiate playback? I am currently using:

  • "Open [Plappa]"
  • "'Play' on [Phone]"

and it's not always working.

I'm using just the play action to resume whatever was playing before.

It might fail in your case because plappa can take a second to load the player after it is launched. Adding a one or two second delay should make the shortcut work more reliably.

I'm currently experimenting with the AppIntents for plappa, but I haven't been able to start playback when the app is closed yet.

LeoKlaus commented 1 week ago

I've got everything working now and have included some intents with the upcoming 1.3.0 update. It should be available on TestFlight in the coming days.

sevenlayercookie commented 1 week ago

I've got everything working now and have included some intents with the upcoming 1.3.0 update.

It should be available on TestFlight in the coming days.

You're a machine!!

LeoKlaus commented 1 week ago

The update is currently in the experimental TestFlight branch and will hit the regular beta channel and the AppStore fairly soon. I'll close this for now.

If you encounter any issues with the shortcuts, feel free to reopen.