Skip to content

Instantly share code, notes, and snippets.

@mlhDevelopment
Last active August 29, 2015 13:57
Show Gist options
  • Save mlhDevelopment/9520504 to your computer and use it in GitHub Desktop.
Save mlhDevelopment/9520504 to your computer and use it in GitHub Desktop.
mejs Double Length in Mac FF
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>Vanilla Demo</title>
<!--<link rel="stylesheet" href="mediaelement/mediaelementplayer.css" />-->
<link href="http://mediaelementjs.com/js/mejs-2.13.2/mediaelementplayer.min.css" rel="Stylesheet" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--<script src="mediaelement/mediaelement-and-player.js"></script>-->
<script src="http://mediaelementjs.com/js/mejs-2.13.2/mediaelement-and-player.min.js"></script>
<script>
$(function () {
// Create the player
var mediaPlayer = new MediaElementPlayer($("#player"), {
audioHeight: 60,
audioWidth: 480,
startVolume: 1,
features: ['playpause', 'current', 'progress', 'duration', 'volume'],
error: function () {
console && console.log && console.log("Error in MediaElementPlayer");
}
});
});
</script>
</head>
<body>
<audio id="player" type='audio/mp3' src='http://mp3s.jesuslifetogether.com/Christian_Life/mp3s/audio/0088_the_simplicity_of_good_news/sgn06t_who_is_jesus.mp3' controls='controls'></audio>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment