How do you set up the work flows to play a song when you have a list of songs and you want the UI to just play when the text of a song is clicked? I have the list of songs in a horizontal group with arrows for next and previous. When I click next it loads the next songs title, but when I click on the song itself to play current index it plays the first song every single time. How do I correct this?
Hi @pmichaelb,
Thank you so much for reaching out!
Our Demo Page has the same use-case example that you’re asking about. Link below.
https://zeroqode-demo-05.bubbleapps.io/audioplayer
On the Demo Page, we have a Repeating Group that displays all the songs in our database. When you click on a song, it starts playing. The workflow is connected to the group, but you can set it up to whatever element you want to play the song when clicked.
The workflow:
This is the workflow to play the song where Element is the AudioPlayer Element, and the song index is Current Cell’s Index.
You can skip this step if you do not have a floating player like on our Demo Page.
We have 2 plugin actions that will help you with that exact scenario.
You can use the Play Next Action to play the next song when you press the Right Arrow and the same goes for the Left Arrow, Play Previous Action to play the previous song in your database.
Hope this helped you achive the functionality that you are looking for.
For any more questions, feel free to contacts us here or on our email support@zeroqode.com!
Have an amazing day ahead
Thank you for your response. I am trying to set this up so that it had a seperate group that has a text box with the titles of the songs hosted in it. That box should be able to trigger the songs, but right now it doesn’t do that.
I want it to load the next item in the index and I want it to only play when I click the title. This is based upon a separate text group that displays the titles of the songs. When I click the next button it shows the next title and they’re repeating group but when I click on it it only players the song from the first of the list.
I wanted to display the next song in the repeating group which is already working, but for some reason it plays the primary song from the index
Can you please provide some screenshots of how you set up the Audio Player and the workflow connected to it?
More information would be highly appreciated in order to recreate your use case and help you as best as we can!
Hoping to hear from you soon