如何创建简单音频播放列表

时间:2014-02-08 15:19:18

标签: javascript html5 audio html5-audio playlist

尝试制作过去两周的音频播放列表。根本没有成功。有人可以帮助我一点。我想这是一个简单的愚蠢的错误,但完全陷入困境。我想要的只是一个主要曲目加载到播放器,下面的一些示例在玩家点击它们时播放。那就是我现在的位置:http://audioplayer.site90.com/

1 个答案:

答案 0 :(得分:0)

文件名约定中的问题。避免使用文件命名约定的空格和特殊字符。更多详情请参阅http://support.apple.com/kb/HT5923

<!doctype html>
<html>
<head>
 <meta charset="utf-8">
  <title>Untitled Document</title>
  <link href="style.css" rel="stylesheet" type="text/css" />
  <script src="player.js"></script>
  </head>
  <body>
    <audio id="audio" preload="" tabindex="0" controls type="audio/mp3" autoplay>
      <!--  <source src="../../../../INTERNET/NAM/library/mp3/NAM_1/ON THE EDGE  3.43.mp3" type="audio/mp3"> -->
     <source src="http://www.w3schools.com/html/horse.mp3" type="audio/mp3">
    </audio>
   </body>
</html>

<!-- Hosting24 Analytics Code -->
 <script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->

希望它对你有所帮助。感谢

相关问题