Giter VIP home page Giter VIP logo

myspace-music-player-extended's Introduction

Myspace Music Player Extended

This project is a fork of an earlier attempt to recreate the classic Myspace Music Player in HTML5. It's a piece of nostalgic beauty, and I wanted to see what could be done to better recreate the visual style while using a more robust solution for audio.

Band Player

The player has been adapted to use AmplitudeJS, which cleans up a lot of the playback handling and adds a lot of features that this thing could be built upon.

Profile Player

This music player is a clone from the popular social network "Myspace" from the mid 2000's.

The songs included for the player examples are also made by me, licensed under CC-BY-SA 4.0 International.

#TODO There's a few features still missing on this project, but I'm really happy with where it's at. Here's what still needs to be done for the project to feel complete:

The first one is "probably easy", just will take some time to build, the second one is "probably hard", because I understand very little about Web Audio APIs and visualization frameworks right now.

Installation

Clone this repository to your machine.

git clone https://codeberg.org/deadsuperhero/myspace-music-player-extended

Usage

Open index.html for a live demo. See the following code snippet from js/app.js for setup.

Amplitude.init({
"bindings": {
  37: 'prev',
  39: 'next',
  32: 'play_pause'
},
"songs": [
  {
    "name": "Feel Good",
    "artist": "Syn Cole",
    "album": "We Are to Answer",
    "url": "audio/Syn_Cole-Feel_Good.mp3",
    "cover_art_url": "img/album.jpg"
  }
]
});

window.onkeydown = function(e) {
  return !(e.keyCode == 32);
};

/*
Handles a click on the song played progress bar.
*/
document.getElementById('button.play').addEventListener('click', function( e ){
var offset = this.getBoundingClientRect();
var x = e.pageX - offset.left;

Amplitude.setSongPlayedPercentage( ( parseFloat( x ) / parseFloat( this.offsetWidth) ) * 100 );
});

License

MIT

myspace-music-player-extended's People

Contributors

deadsuperhero avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

zoio03

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.