HTML5 fmp4 live stream (ll-fmp4) player written in TypeScript
MIT License
HTML5 fmp4 live stream (ll-fmp4) player written in TypeScript
yarn
yarn build
<script src="umataste url or import"></script>
<video id="videoElement"></video>
<script>
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()
});
</script>