I'm trying to program a small game with HTML5 and Javascript.
I've used excanvas.js to support canvas for IE and canvas_text.js to support some features of text on canvas for IE.So normally it should work with IE.
But when I want to use my audioloop in JS with
- Code: Select all
document.getElementById('cyclemusic').addEventListener('ended', function(){ //+++++++++++++für IE auskommentieren
//+++++++++++++für IE auskommentieren
this.currentTime = 0; //+++++++++++++für IE auskommentieren
}, false);
to manipulate this element from my html-file
- Code: Select all
<audio id="cyclemusic" autoplay>
<source src="in_the_house.ogg"> <!--Firefox-->
<source src="in_the_house.wav"> <!--IE-->
<source src="in_the_house.mp3"><!--safari-->
</audio>
I get the following report
[/img]
So if anyone knows what to do please help me.