Forum Discussion
Reset Marker state when audio done
- 2 months ago
I don't believe the media states nested inside the marker can be controlled by triggers. To change the state of the icon after the audio completes, the marker content needs to be closed, which requires clicking the marker. In this scenario, I would use a JavaScript solution to target the audio inside the marker, and when the audio finishes, simulate a marker click event to change its state. Maybe something like this:
I've attached a short video demonstrating this. I hope there is a simpler and better solution that doesn't involve JavaScript, but I just can't figure it out at the moment.
Hi TracyDunham I think you would be able to do this by using a trigger on the media completing. For example, when the audio completes, check the state of the marker to the desired state.
Thanks Sam - That was my thought also but could not find a way to do it