I have a client (site: [url removed, login to view]) and as you can see, is a radio station in Brazil. The site have a live stream button that when clicked open in a new window and a media player that fire up as soon the page gets loaded (on desktop and android). The problem is that when the user click on the live stream button, both musics will play and that is what the client want avoid but still want to have both windows open.
The solution would be adding a function onclick that stop the main page player if it was on. But the player, on some browsers, doesn't start as the page gets loaded so...
Can you create this snippet of code for me to add on the streaming button that will stop the player when is on? Thanks.