2012-07-10 69 views
1

我试图按照说明here设置示例Sound Cloud播放器。我结束了一个index.html页,看起来像这样:Sound Cloud自定义播放器未播放

<!DOCTYPE HTML> 
<html> 
    <head> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8"> 
    <title>Sample SC</title> 
    <link rel="stylesheet" href="css/sc-player-standard.css" type="text/css"> 
    <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script> 
    <script type="text/javascript" src="js/soundcloud.player.api.js"></script> 
    <script type="text/javascript" src="js/sc-player.js"></script> 
    </head> 
    <body> 
    <a href="http://soundcloud.com/matas" class="sc-player">My latest tracks</a> 
    </body> 
</html> 

当网页加载完毕后,一切似乎正确,看起来功能(即:你可以选择曲目,并单击“播放”图标,打开它进入'暂停'图标,我可以看到封面图案),但没有音频播放,并且音轨的播放时间从未开始。我只是通过python服务器查看本地计算机上的页面。还有什么我应该做的?

由于提前,

回答

1

您使用的是什么浏览器?我复制并粘贴了您的代码,并在iOS,Mac OS X和Safari上的Safari,Firefox和Chrome中进行了测试。试试这个版本,看看它是否适合你:

http://dl.dropbox.com/u/14333604/demos/custom-player/index.html

如果这样的作品,评论,我会与有关调试的一些其他的想法编辑我的答案。

+0

Paul,在linux上使用铬时,该链接的行为与原始代码/问题的行为方式相同,但在Linux上使用firefox时按预期工作。所以这可能是一个浏览器问题。谢谢你帮我解决这个问题。任何想法调试? – danwoods 2012-07-10 17:20:25