开发者

failed to load resource

开发者 https://www.devze.com 2023-01-31 20:15 出处:网络
Im trying to set up a simple mp3 player: <script language=\"javascript\"> $(document).ready(function()

Im trying to set up a simple mp3 player:

<script language="javascript">
$(document).ready(function() 
开发者_运维技巧{         
    $('a.media').media( { width: 300, height: 20 } );                      
});
</script>

and then

<a class="media" href="piano.mp3">piano</a>

But i get the following error: Failed to load resource

I have followed the tutorial at http://jquery.malsup.com/media/audio.html, and if i click to view source and clikc on piano.mp3 chrome opens up its built in media player and plays the song, so the link and location is correct...

Anyone got a clue?


I reckon you probably need to download mediaplayer.swf since it's the default player for mp3 files (according to the docs)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号