Exit the player or clear the current playlist queue
Posted: 2021-05-16, 09:13 UTC
Hello,
I managed to use TC as media player for mp3 files via Tasker intents.
When I trigger a task to play another file, the file is appended to the playlist queue. Is it possible to send an action or intent to delete the current queue, then add the new file in a new task and then "hit play"? I figured how to do the latter two parts, but not the delete playlist queue.
In short, if I send an intent to play a music file, I want it to be the only file in the queue.
My approaches so far were
- killing the app, then send the play command (but don't want to root or grant device admin rights to apps)
- use the com.ghisler.Exit intent which is stated in the manifest (did not work, maybe misconfiguration?). I assume it will exit the TC or just the media player, I don't know.
- immediately skip to the next track upon opening the file (this kinda works but it increases the queue length infinitely especially if not maintained regularly because of usage with kids)
Another task I could not succeed in is rewinding a music file. The usual Tasker media command actions seem to be ignored.
Thanks for the help,
feba
I managed to use TC as media player for mp3 files via Tasker intents.
When I trigger a task to play another file, the file is appended to the playlist queue. Is it possible to send an action or intent to delete the current queue, then add the new file in a new task and then "hit play"? I figured how to do the latter two parts, but not the delete playlist queue.
In short, if I send an intent to play a music file, I want it to be the only file in the queue.
My approaches so far were
- killing the app, then send the play command (but don't want to root or grant device admin rights to apps)
- use the com.ghisler.Exit intent which is stated in the manifest (did not work, maybe misconfiguration?). I assume it will exit the TC or just the media player, I don't know.
- immediately skip to the next track upon opening the file (this kinda works but it increases the queue length infinitely especially if not maintained regularly because of usage with kids)
Another task I could not succeed in is rewinding a music file. The usual Tasker media command actions seem to be ignored.
Thanks for the help,
feba