Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 );
});
```