Skip to content
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

Control via Intents ? #17

Closed
Tiemichael opened this issue May 10, 2021 · 8 comments
Closed

Control via Intents ? #17

Tiemichael opened this issue May 10, 2021 · 8 comments
Labels
question Further information is requested

Comments

@Tiemichael
Copy link

Tiemichael commented May 10, 2021

Describe the feature you want to implement:

I would like to control Auxio via Tasker by sending Intents like
INTENT_PLAYBACK_COMMAND_PLAY = "auxio.command.PLAY";

Is your feature request related to a problem? Please describe:

Why do you think this will improve everyone's usage of Auxio?

This feature allows to control Axio eg from a car-steering wheel, or integrate into other projects.
There are a few audio-players like GoneMad or PowerAmp which offer this feature, but non of them is free.

Due Diligence:

Thanks!

@Tiemichael Tiemichael added the enhancement New feature or request label May 10, 2021
@OxygenCobalt
Copy link
Owner

OxygenCobalt commented May 10, 2021

Can you try using these intent names?

ACTION_AUXIO_LOOP_
ACTION_AUXIO_SHUFFLE_
ACTION_AUXIO_SKIP_PREV_
ACTION_AUXIO_SKIP_PLAY_PAUSE_
ACTION_AUXIO_SKIP_NEXT_

These are used in the notification code to control the app, so they may work in your case as well.

@Tiemichael
Copy link
Author

Thanks for your reply!
I did some tests but not yet successful.
When looking at the source-code I see ACTION_PLAY_PAUSE and some others but not ACTION_AUXIO_SKIP_PLAY_PAUSE_
Will do some more tests over the next days ...

@OxygenCobalt
Copy link
Owner

OxygenCobalt commented May 11, 2021

Wait, I forgot. In the current version the word release is appended to the actions to prevent conflicts with the debug app. Can you try:

ACTION_AUXIO_LOOP_release
ACTION_AUXIO_SHUFFLE_release
ACTION_AUXIO_SKIP_PREV_release
ACTION_AUXIO_SKIP_PLAY_PAUSE_release
ACTION_AUXIO_SKIP_NEXT_release

@Tiemichael
Copy link
Author

Thanks!
I am sure it's possible, but I am not experienced enough to get it going.
Need to get some help from another forum.

BTW, are you sure it's ACTION_AUXIO_SKIP_PLAY_PAUSE_release and not ACTION_AUXIO_PLAY_PAUSE_release

@OxygenCobalt
Copy link
Owner

Its ACTION_AUXIO_PLAY_PAUSE_release, accidentally pasted it wrong.

@OxygenCobalt
Copy link
Owner

I'm assuming that this issue is solved as of now. A quick note before I close it though, I've updated the wording of the actions. In 1.4.1, they will now be:

org.oxycblt.auxio.action.LOOP
org.oxycblt.auxio.action.SHUFFLE
org.oxycblt.auxio.action.PREV
org.oxycblt.auxio.action.PLAY_PAUSE
org.oxycblt.auxio.action.NEXT

I hope this helps!

@Tiemichael
Copy link
Author

Thanks! will try

@OxygenCobalt
Copy link
Owner

Don't try them on the current version though! I'm talking about the next version.

@OxygenCobalt OxygenCobalt added question Further information is requested and removed enhancement New feature or request labels Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants