[](https://github.com/igrigorik/ga-beacon) PlayemJS ======== PlayemJS is a front-end JavaScript component that manages a audio/video track queue and plays those tracks sequentially. It can currently play tracks from the following streaming platforms: - Youtube - Soundcloud - Deezer - Bandcamp - Vimeo - Dailymotion - Jamendo - ... and MP3 files hosted online Depending on the platform of each track, PlayemJS dynamically embeds the media in a HTML element, or through the Soundmanager2 audio player. PlayemJS powers the music curation service [Openwhyd.org](http://openwhyd.org) (formerly whyd.com). That's the best demonstration of its capabilities. Examples ----- ### 1. Play just a Vimeo video ```html
``` ▶️ [Watch it work live on Codepen](http://codepen.io/adrienjoly/pen/QjLRXa?editors=101) ### 2. Play Vimeo and Youtube videos Using a playlist, multiple players and Event logging. ```html ``` ▶️ [Watch it work live on Codepen](https://codepen.io/adrienjoly/pen/EXXEXq?editors=1011) ### 3. Play Video and Audio streams Relies on soundmanager2. ```html ``` ▶️ [Watch it work live on Codepen](https://codepen.io/adrienjoly/pen/bRRMdQ?editors=1011) Usage with npm -------------- npm install playemjs Then use it that way in your front-end code: ```html ``` React component --------------- (Work in progress) Check out [react-music-player](https://github.com/adrienjoly/react-music-player). Tests and further development ----------------------------- You can run tests from that page: - [PlayemJS Youtube Video Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-youtube/index.html) - [PlayemJS Video Players Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-players/index.html) - [PlayemJS URL Detection Test](https://cdn.rawgit.com/adrienjoly/playemjs/master/test/test-detection/index.html) If they don't work from there, you can clone the project, and run them locally. Any help in documenting/fixing/developing this project is welcome! :-)