Created
January 31, 2013 17:25
-
-
Save mrshu/4684559 to your computer and use it in GitHub Desktop.
Simple example of usage of HTML5 audio tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
var player = document.getElementById("player"); | |
player.play(); | |
</script> | |
</head> | |
<body> | |
<audio id="player"> | |
<source src="http://www.jplayer.org/audio/mp3/TSP-01-Cro_magnon_man.mp3" /> | |
<source src="http://www.jplayer.org/audio/ogg/TSP-01-Cro_magnon_man.ogg" /> | |
</audio> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment