Helper to stream-server, js video player implementation for fmp4 HLS (single playlist only, no manifest switching)
Find a file
2023-08-25 13:21:07 +05:00
hls-player.js comments 2023-08-24 13:28:30 +05:00
mp4-tree.js bogus text for unsupported codec mime string 2023-08-25 13:21:07 +05:00
README.md Added readme 2023-08-24 14:23:04 +05:00

hls-player.js

Extremely basic hls player using MediaSource extensions.

Meant to be a custom replacement for hls.js for the stream-server repo

Not a drop-in replacement nor intended for actual use. Meant to just be used with the way stream-server handles the http serving.

Currently only works with a single playlist file (not the manifest playlist)

Only works with fragmented mp4, not mpegts. Requires h264 video and mp4a audio. Should be able to parse the codec profile automatically given the above.

Use requires an html5 <video> tag. If attributes autoplay muted are set, can be used by adding this script: <script>var x = new VideoLoader('video_tag_id')</script>. Otherwise add extra code to handle playing, etc.

Simplest export is cat *.js > /path/to/output.js. Minify, rename, do whatever extra bits you want.