Go to file
2024-09-06 14:58:42 +02:00
.gitignore Added gitignore 2022-08-10 17:13:26 +02:00
multiplayer.js Made sure sources get ordered in a predictable way 2024-09-06 14:58:42 +02:00
README.md Unknown languages now lead to English UI. Updated documentation 2023-08-16 14:24:12 +02:00

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.

Internationalization

The player defaults to English as its UI language. If the containing HTML document has a lang attribute, it is used to set the UI language in the player. Currently only supports English (en) and Swedish (sv).