How to stop one player when starting another
-
I have a WordPress page that uses several instances of the audio player for different artists and tracks.
Currently, if you click “play” on multiple players, they all play at the same time.
Is there a way to automatically stop all other players when a new player is clicked? I only want one player to play at any given time. Maybe this is possible through some additional coding on the page…?
I’ve seen a post on StackOverflow, but I’m not sure how to apply the concept to the WordPress audio plugin:
http://stackoverflow.com/questions/4196979/only-allow-one-audio-element-to-play-at-a-timeThanks for any suggestions!
https://wordpress.org/plugins/pb-oembed-html5-audio-with-cache-support/
- The topic ‘How to stop one player when starting another’ is closed to new replies.