Hi all,
I've got an issue with the web playback api where the player reports
that it is buffering but the status never updates and no audio is
played. Just wondering if there's a way to debug what's going on
behind the scenes. As far as I know, I have a valid playback token. In
fact, most of the code was built based off the example app.
Here's the code I have:
var player;
var rdioListener = {
ready: function() {
console.log('player ready');
player = document.getElementById("CTplayer");
player.rdio_play('a254895')
},
playStateChanged: function(state) {
console.log('changed:', state);
}
};
var flashvars = {
playbackToken: playbackToken,
domain: encodeURIComponent('http://'+document.location.host),
listener: 'rdioListener'
};
var params = {
'allowScriptAccess': 'always'
};
swfobject.embedSWF("
http://www.rdio.com/api/swf/", "CTplayer", "1",
"1", "9.0.0","", flashvars, params);
-
The ready event fires, and the playStateChanged state fires a few
times (2, 3).
Any insight on how to debug this?