I have a problem with part of my javascript code in IE9.
When I start the page I get an error: Unexpected call to method or property access.
This is my audio tag in html file:
<audio controls loop preload id="musicGame">
<source src="mp3/ambient.ogg" type="audio/ogg" />
<source src="mp3/ambient.mp3" type="audio/mpeg" />
</audio>
I'm calling my audio tag in javascript like that:
musicGame = $('#musicGame')[0];
Then I'm pausing it because I have a mute button and I need to pause all songs on my page in order for mute to work.
musicGame.pause();
This is where IE9 throws an error.
Any ideas what could be wrong?