0.0.13-alpha • Published 1 year ago
janus-ftl-player v0.0.13-alpha
Janus FTL Player
Simple player for Janus FTL streams
Features
- Commandeers <video> elements for WebRTC FTL live streaming
Usage
NPM
First, you'll need to install the dependency
$ npm install --save janus-ftl-player
And then you can use it in your modules like so:
import { FtlPlayer } from "janus-ftl-player";
let videoContainer = document.querySelector("video");
let janusEndpoint = "http://localhost:8088/janus";
let channelId = 1;
let player = new FtlPlayer(videoContainer, janusEndpoint);
player.init(channelId);
Standalone
Grab the dist/main.js file include it in your project somewhere, then you can use it like so:
<!-- type="module" is important for loading the library -->
<script type="module" src="main.js"></script>
<script>
let player = new JanusFtlPlayer.FtlPlayer(document.querySelector("video"));
player.init(1);
</script>
You can find a working example in dist/index.html
License
0.0.11-alpha
1 year ago
0.0.12-alpha
1 year ago
0.0.13-alpha
1 year ago
0.0.10-alpha
3 years ago
0.0.9-alpha
3 years ago
0.0.8-alpha
3 years ago
0.0.6-alpha
3 years ago
0.0.7-alpha
3 years ago
0.0.4-alpha
3 years ago
0.0.5-alpha
3 years ago
0.0.3-alpha
3 years ago
0.0.2-alpha
4 years ago
0.0.1-alpha
4 years ago