Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8 />
  <title>JS Bin</title>
  <script src="https://feed.fm/js/feed-media-audio-player.1.99.2.min.js"></script>
</head>
<body>
  
  <div id="player-view-div">
    <div class='status'></div>
    <button class="play-button">play</button>
    <button class="pause-button">pause</button>
    <button class="skip-button">skip</button>
  </div>
  <script>
    // Create basic player.
    var player = new Feed.Player('demo', 'demo');
    
    // Display all the events the player triggers
    player.on('all', function(event) {
      console.log('player triggered event \'' + event + '\' with arguments:', Array.prototype.splice.call(arguments, 1));
    });
    
    var playerView = new Feed.PlayerView('player-view-div', player);    
    
    player.tune();
  </script>
  
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers