scottschiller / SoundManager2

A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB. BSD licensed.
http://www.schillmania.com/projects/soundmanager2/
Other
4.99k stars 768 forks source link

Url in my website with # hash sign => destroys Soundmananger2 (Page-player) #171

Open Sput007 opened 7 years ago

Sput007 commented 7 years ago

Hi, On my website i have URLs 'https://........be/techno/#pageId=2' I use Muxtape-style (page-player) I have double play, all mp3 play bad on that pages. So soundmanager falls overf '# hash sign' in the url.

How can i change SM2 that he dont falls over the # hash in that Url?? Thx Bro's.

scottschiller commented 7 years ago

Hm, interesting. SM2 should load MP3s linked from that page without interference from URL bits like #pageId and such. You can add a className attribute to exclude the page player (or others) from attempting to handle clicks on certain URLs, if you like.

It's unclear where the double-playing is happening from your description. Maybe there are two instances of the player somehow on the page?