Soundcloud Javascript API: can't disable visual player -


i'm having issue soundcloud javscript api cannot seem turn off visual player (the artwork image shows background) in order have artwork image show small square image left of player instead of background image.

i've tried in setting parameters nothing seems disable visual player (i can change height, turn off comments, etc...). here's code:

sc.get("/users/"+slt.userid+"/tracks", {limit: slt.tracks, offset : ((trackpage-1)*slt.tracks), visual: false, show_artwork: false }, function(tracks){         (var = 0; < slt.tracks; i++) {             if ( tracks[i] !== undefined ) {                         var track = tracks[i];                 }                     sc.oembed(track.uri, { maxheight: slt.maxheight, show_comments: slt.show_comments, show_user: true, show_artwork: false, visual: false}, document.getelementbyid(("slt-track-"+_trackcount)));             }         }     }); 

any appreciated!!! thanks!

answering own question here figured out:

i guess soundcloud has not yet implemented visual option api of yet had edit iframe string got oembed method code looks following now:

                sc.oembed(track.uri, { maxheight: slt.maxheight, show_comments: slt.show_comments, show_user: true}, function(oembed){                         jquery("#player-id").html(oembed.html.replace('visual=true&',''));                     }); 

this removed visual parameter in iframe string changes soundcloud player visual 1 normal html5 one.

i hope helps else had trouble javascript sdk api!


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -