toneden soundcloud javascript hep -
hello novice having trouble viewing toneden soundcloud audio player. have entered soundcloud consumer key , still cannot show
here instructions toneden github
the toneden sdk loaded asynchronously, means page doesn't have wait sdk load before rendering. means loading little more complicated including
<script>
tag. don't worry though, we've taken care of complicated stuff you. copy snippet below html page, enter soundcloud consumer key, , replace commented portion code calling sdk. if don't have soundcloud consumer key, can create 1 here.
it may simple, appreciate someone's guidance in matter.
here sample code given toneden github:
<script> (function() { var script = document.createelement("script"); script.type = "text/javascript"; script.async = true; script.src = "//sd.toneden.io/production/v2/toneden.loader.js" var entry = document.getelementsbytagname("script")[0]; entry.parentnode.insertbefore(script, entry); }()); tonedenready = window.tonedenready || []; tonedenready.push(function() { toneden.configure({ soundcloudconsumerkey: '<your soundcloud consumer key here>' }); // action happens: toneden.player.create({ dom: "#player", eq: "waves", skin: "light", tracksperartist: 4, urls: [ "https://soundcloud.com/mutantbreakz/blacklist-vs-alt-a-fire" ] }); }); </script>
Comments
Post a Comment