Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/monyone/umataste

HTML5 fmp4 live stream (ll-fmp4) player written in TypeScript
https://github.com/monyone/umataste

fmp4 html5 low-latency mse player webcodecs

Last synced: 3 months ago
JSON representation

HTML5 fmp4 live stream (ll-fmp4) player written in TypeScript

Awesome Lists containing this project

README

        

# umataste [![npm](https://img.shields.io/npm/v/umataste.svg?style=flat)](https://www.npmjs.com/package/umataste)

HTML5 fmp4 live stream (ll-fmp4) player written in TypeScript

## Feature

* Playback for fmp4 stream
* Extremely low latency of less than 0.1 second in the best case
* following live playback style supported
* MSE (High Quolity, but 0.5 ~ delay)
* Breakout Box (low latency, use WebCodecs and BreakOut Box, Chrome Only)
* Canvas + WebAudio (low latency, use WebCodecs, Chrome Only)
* Every component are plugable style

## Build

```
yarn
yarn build
```

## Getting Started

```

var videoElement = document.getElementById('videoElement');
// MSEPlayer use Media Source Extension
// BreakoutBoxPlayer use Insertable Stream for MediaStreamTrack
// CanvasWebAudioPlayer use Canvas and WebAudio
var zlplayer = new window.umataste.MSEPlayer({
// some options
});
zlplayer.attachMedia(videoElement);
zlplayer.load(/* url */).then(() => {
videoElement.play()
});

```