kilokeith/soundcloud-soundmanager-player

change in new track

Opened this issue · 0 comments

Hi,

the only way i found to load a new track after the object is builded is to set again the object var, the destroy(method) seams don't work
var scplayer1obj = new SoundCloudPlayer([...

....
videoid = newvideoid
scplayer1obj = new SoundCloudPlayer([
videoid
],{
consumer_key: "524c5acd5e5c401654259eb487c4bfb2"
, autoplay: false
, loop: false
, toggle_pause: true
, preload: true
, cache: true
});

this way works well until i try to reload a track i previously loaded, also if i use cache : false

if i have 2 player in the same page, also i can't load a track previously loaded in the other player

i don't understand how this really works

there is a way to load a a new track after the object is opened? i need to use a single track array.

how destroy() works? because if i fire a .destroy(), after i can't rebuild the object "_this is not defined" cause some var are not rebuilded

cache : false is working?,