Skip to content

braindeadpool/oneplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oneplayer

OnePlayer is a demo music player app that lets you mix and match multiple media sources such as Spotify and YouTube in a single player. NOTE: this is a very rudimentary prototype of a source agnostic media player library (libSAMP) which lets developers write their own custom connectors (ex. Soundcloud or local file playback) and control them together from a single API. For demo purposes, there's a small web-app built atop libSAMP showing YouTube and Spotify in a single player.

demo pic

Setting up

Install npm

Install typescript

npm install -g typescript

Now you can build libSAMP which is the backend pure-typescript library that abstracts out multiple media players into a single API.

libSAMP

cd libsamp/
npm install
npm run build
cd ../

Optionally, if you want to use this local version of libSAMP for building the web-app in the next section, you will have to symlink it as:

cd libsamp/
npm link
cd ../web-app-ts
npm link libsamp
cd ../

Web App

After you create an application on the Spotify developers dashboard to get Spotify credentials and obtain a YouTube API key, copy the config_example.ts file to config.ts and fill in the relevant bits.

To build the web-app, simply run the following after libSAMP is built:

cd web-app-ts/
npm install
npm start

About

OnePlayer: A source agnostic media player that supports multiple media sources.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published