Keeping a live stream running is a pain. If you just want to
mess around or do a demo, it's totally
overkill. You could waste your CPU running an encoder
locally or add yet-another server to restart every month…
or you could drop in looper
and let it turn any HLS
stream you can find into an infinitely repeating live
stream. It's just two steps:
- Drop
loop-worker.mjs
onto the root of your domain - Include
looper.mjs
in your page before yourvideo
element
Check out the README for more detailed instructions. From the perspective of code running on your page, it's the same thing as any other live stream. That means Looper works seamlessly with any player that supports HLS video.