このカスタムの jplayer mp3 を私のブログ (ブロガー プラットフォーム) に載せようとしているので、助けてもらいたいと思っています。基本的に、コーディングに関しては、言葉のあらゆる意味でアマチュアです。ここからこのチュートリアルに従い、適切にすべてを行いましたが、まだプレーヤーを動作させることができません。これがコードです。何日もこのことをしなければならなかったので、どんな助けも大歓迎です。
$(document).ready(function() {
// $ ではなく jQuery オブジェクトを使用
var mediaPlayer = jQuery('#mediaContainer');
mediaPlayer.jPlayer({
// Tells JPlayer where to find the SWF file.
swfPath: 'https://sites.google.com/site/maestromuzic/Jplayer.swf',
// Fix for some older Andriod phones.
solution: "flash, html",
// Tells the player that the track is available in:
// mp3, Ogg Vorbis and Wave formats.
supplied : 'mp3',
// Assigns the CSS selectors which will control the player,
// creating buttons.
cssSelector: {
play: '#playButton',
pause: '#pauseButton',
stop: '#stopButton'
},
// Assigns the files for each format, once the player is loaded.
ready: function() {jQuery(this).jPlayer("setMedia", {
mp3: 'http://files.mboxdrive.com/1296462407/Lutan Fyah - Badmind.mp3',
});}
});
$('#playButton').click(function() {
$('#mediaContainer').jPlayer('play');
});
$('#pauseButton').click(function() {
$('#mediaContainer').jPlayer('pause');
});
$('#stopButton').click(function() {
$('#mediaContainer').jPlayer('stop');
});
});
</script>
<div id="mediaPlayer">
<div id="mediaContainer">
</div>
<div id="playButton">
Play</div>
<div id="pauseButton">
Pause</div>
<div id="stopButton">
Stop</div>
</div><code>