13 Matching Annotations
  1. Oct 2022
  2. Aug 2022
    1. The Widget API allows you to externally control the widget that is embedded on your website through javascript. You set the width and height of the widget to 0 and it hides the widget. I tinkered with this on codepen this week and I am pleased that I now have a working playlist ready to be utilized on my website.

      https://codepen.io/mdcrowcodes/pen/eYEMyzY

      ```js var iframeElement = document.querySelector('iframe'); var iframeElementID = iframeElement.id; var widget = SC.Widget(iframeElement); var x = document.getElementById("play");

      widget.bind(SC.Widget.Events.FINISH,function(){ widget.getCurrentSound(function(currentSound) { document.getElementById("currentTrack").innerHTML = currentSound.title; }); });

      function play(){<br /> if (x.innerHTML === "▶") { x.innerHTML = "||"; } else {x.innerHTML = "▶"; } widget.toggle(); };

      function next(){ x.innerHTML = "||"; widget.next(); widget.seekTo(0); widget.getCurrentSound(function(currentSound) { document.getElementById("currentTrack").innerHTML = currentSound.title; }); };

      function prev(){ x.innerHTML = "||"; widget.prev(); widget.seekTo(0); widget.getCurrentSound(function(currentSound) { document.getElementById("currentTrack").innerHTML = currentSound.title; }); };

      widget.bind(SC.Widget.Events.READY, function() { widget.getCurrentSound(function(currentSound) { document.getElementById("currentTrack").innerHTML = currentSound.title;

      widget.getSounds(function(tracks){ for (var i in tracks) {

         $('#tracklist').append("<li class='track-item' id='" + i + "'" + ">" + tracks[i].title + "</li>");
        }
      
       $(".track-item").click(function(){
         var s = this.id
         widget.seekTo(0);
      widget.skip(s);       
        x.innerHTML = "||" ;     widget.getCurrentSound(function(currentSound) {
      

      document.getElementById("currentTrack").innerHTML = currentSound.title; });

      });

      });

      }); }); ```

  3. May 2022
    1. We also support machine tags that follow the pattern NAMESPACE:KEY=VALUE. For example: geo:lat=43.555 camel:size=medium machine:tag=with space Machine tags are not revealed to the user on the track pages.

  4. Dec 2021
    1. API

      In order to access the JavaScript object which provides the SoundCloud Widget API, add this script to your html page.

      This script exposes the SC.Widget(/*iframeElement|iframeElementID*/) function to the global scope. It allows you to control the widget from the parent page (the page the widget is inserted into). SC.Widget accepts the reference to the iframe element or its id.

      var iframeElement   = document.querySelector('iframe');
      var iframeElementID = iframeElement.id;
      var widget1         = SC.Widget(iframeElement);
      var widget2         = SC.Widget(iframeElementID);
      // widget1 === widget2
      
  5. Oct 2021
  6. Oct 2019
  7. Oct 2018
  8. Jan 2016
    1. The Internet transmits data of all kinds: text, images, sounds, moving pictures, etc. The World Wide Web is a newly powerful word (or medium of symbolic representation, or language) that allows us to imagine and create newly powerful n-dimensional representations of the n-dimensional possibilities of “coining words” (making and realizing representations) together.

      From Twitter, to Instagram, to Soundcloud, to Vimeo this is extremely evident. Look at the connection between what is said in the article and the links provided. Twitter is full of rich text, images, sounds and motion pictures. It is a sort of melting pot of it all. Instagram as well. The singular options include Soundcloud for sound (of course) and Vimeo for "...moving pictures."

  9. May 2015