Audio
:
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "AudioFiles/Thorne, Grandma Goodbye excerpt_4.m4a",
oga: "AudioFiles/Thorne, Grandma Goodbye excerpt_4.m4a"
});
},
swfPath: "/jquery",
supplied: "mp3, oga"
});
});
</script>
swfPath . solution
, :
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://helios.hud.ac.uk/u0867587/Mobile_app/AudioFiles/AudioFiles/Thorne, Grandma Goodbye excerpt_4.m4a",
oga: "http://helios.hud.ac.uk/u0867587/Mobile_app/AudioFiles/AudioFiles/Thorne, Grandma Goodbye excerpt_4.m4a"
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "m4a, oga"
});
});
</script>
.
UPDATE:
(mp3, m4a, oga) . , .
mp3:
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "http://path/to/file.mp3"
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "mp3"
});
});
</script>
m4a:
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "http://path/to/file.m4a"
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "m4a"
});
});
</script>
:
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
oga: "http://path/to/file.oga"
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "oga"
});
});
</script>
mp3, m4a, oga
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "http://path/to/file.mp3"
m4a: "http://path/to/file.m4a"
oga: "http://path/to/file.oga"
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "mp3, m4a, oga"
});
});
</script>
Update2
, php-, :
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
m4a: "<?php echo "http:
mp3: "<?php echo "http:
oga: "<?php echo "http:
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "m4a, mp3, oga"
});
});
:
<?php
$file_info = pathinfo($dbAudioFile);
$ext = $file_info['extension'];
?>
<script type="text/javascript">
$(document).ready(function(){
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
<?php echo $ext;?>: "<?php echo "http:
});
},
solution:"flash,html",
swfPath: "jquery",
supplied: "<?php echo $ext;?>"
});
});