Giter VIP home page Giter VIP logo

spotify-webplayer-x3d's Introduction

X3D Spotify Music Player

3D visual music player for WebGL compatible browsers. Tested on Oculus GO, mobile and desktop browsers

sample

https://spotifyx3d.herokuapp.com/

About

  • create a Spotify App and get your Client ID and Secret ID
  • The App is using the Spotify web SDK to get a token
  • The nodeJS server will do the redirections in a way to provide the token from the client to the server
  • The server will setup the callback url for the Spotify service, will connect to spotify server to get your client id and device to trigger automatically the playback
  • The client triggers commands to play next/previous and pause the playback
  • Using the unsplash API the app will download a different background image for each song
  • NJoy

Development

  • create a config file in the root directory config.local and set
SPOTIFY_CLIENT_ID=<your client id here>
SPOTIFY_SECRET_ID=<your spotify secret id here>
HOST_URL=<your reachable host url (for dev I used ngrok)>
  • npm install
  • npm run start
  • navigate to http://localhost:8080/

Background image

in client/index.js:186 set your unsplash client_id or replace the return of the FetchAndUpdateBackgroundImage() function to provide the background you wish

spotify-webplayer-x3d's People

Contributors

kapekost avatar

Watchers

 avatar  avatar

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.