Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixgirault/multiplayer.js
Exposes different player APIs in a unified interface.
https://github.com/felixgirault/multiplayer.js
Last synced: about 1 month ago
JSON representation
Exposes different player APIs in a unified interface.
- Host: GitHub
- URL: https://github.com/felixgirault/multiplayer.js
- Owner: felixgirault
- Created: 2013-06-29T17:46:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T22:41:32.000Z (almost 11 years ago)
- Last Synced: 2024-05-01T12:40:50.107Z (8 months ago)
- Language: JavaScript
- Size: 375 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Multiplayer.js
==============Multiplayer allows one to interact with different videos players in a unique way.
Example
-------This code will create a youtube player, and play the video when the player is ready.
```html
``````js
var multiplayer = require( 'multiplayer' );multiplayer( 'http://www.youtube.com/watch?v=gus0b8Z-Ez8', {
id: 'my-player',
width: 800,
height: 600
}).then( function( player ) {
player.play( );
}, function( error ) {
alert( error );
});
```