Id tag causes audio to not play in chrome
问题 I have an audio element on a webpage and I need to add an id tag "player" to the element. I am using getElementById("player"). The element in quesiton: <audio id="player" controls loop> <source src="Out_of_the_Skies_Under_the_Earth.mp3" type="audio/mp3"> </audio> I am using the 'player' tag to make the next two lines useful, using the Web Audio API: var mediaElement = document.getElementById('player'); var sourceNode = context.createMediaElementSource(mediaElement); This is the only place I