https://github.com/glimesh/janus-ftl-player
Simpler FTL video wrapper for a <video> element.
https://github.com/glimesh/janus-ftl-player
player video
Last synced: 5 months ago
JSON representation
Simpler FTL video wrapper for a <video> element.
- Host: GitHub
- URL: https://github.com/glimesh/janus-ftl-player
- Owner: Glimesh
- License: mit
- Created: 2020-08-21T23:32:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T11:38:51.000Z (about 2 years ago)
- Last Synced: 2024-12-29T22:38:59.804Z (5 months ago)
- Topics: player, video
- Language: TypeScript
- Homepage: https://glimesh.github.io/janus-ftl-player/
- Size: 1.39 MB
- Stars: 17
- Watchers: 5
- Forks: 4
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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:
```javascript
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:
```htmllet player = new JanusFtlPlayer.FtlPlayer(document.querySelector("video"));
player.init(1);```
You can find a working example in `dist/index.html`## License
[MIT License](LICENSE.md)