Reputation: 4907
I'm trying to setup an example Sound Cloud player by following the directions here. I end up with an index.html page that looks like this:
<!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>
When I load the page, everything appears correct and looks functional (ie: you can select tracks, and clicking the 'play' icon turns it into a 'pause' icon, I can see cover art), but no audio plays and the elapsed time for the track never starts. I'm just looking at the page on my local machine through a python server. Is there anything else I should be doing?
Thanks in advance,
Dan
Upvotes: 1
Views: 320
Reputation: 4117
What browser are you using? I copied and pasted your code and tested in Safari, Firefox and Chrome on Mac OS X and Safari on iOS. Try this version and see if it works for you:
http://dl.dropbox.com/u/14333604/demos/custom-player/index.html
If that works, comment and I'll edit my answer with some other ideas about debugging.
Upvotes: 1