Added readme

This commit is contained in:
Erik Thuning 2022-12-08 16:58:34 +01:00
parent cec90328dc
commit c4569c46b5

21
README.md Normal file

@ -0,0 +1,21 @@
# multiplayer.js - A custom HTML element for multi-stream video playback
This is a video player that plays multiple video streams at once, keeping them
in sync based on elapsed playback time. The player is tested with up to 4
simultaneous streams, but should in principle support an arbitrary number.
## Usage
To use the player, load `multiplayer.js` on the relevant page and use the
`<multi-player>` tag to create a player. The player requires one of the
following attributes to be set in order to function:
* `play`: Absolute or relative URL to a file containing a package definition.
* `play-local`: A string containing a package definition.
To activate playlist functionality, set one of the following attributes:
* `list`: Absolute or relative URL to a file containing a playlist definition.
* `list-local`: A string containing a playlist definition.
An arbitrary number of players can be placed on the same page.