go-hls-hosting
go-hls-hosting generates LIVE, CHASE playlists from your given VOD playlist, and allows you to access those VOD, LIVE, CHASE playlists individually.
Get Started
To get started, run main.go with master playlist path and listenen port.
If you haven't prepared your master playlist, you can use one in sampledata directory.
go run main.go --path your/hls/master/playlist.m3u8 --port 1323
Once you've run it, you can access VOD, LIVE, CHASE playlists respectively with the following path.
Type |
master playlist |
media playlist |
segment |
VOD |
/vod/playlist.m3u8 |
/vod/:index/playlist.m3u8 |
/vod/:index/:path |
LIVE |
/live/playlist.m3u8 |
/live/:index/playlist.m3u8 |
/live/:index/:path |
CHASE |
/chase/playlist.m3u8 |
/chase/:index/playlist.m3u8 |
/chase/:index/:path |
With Docker
You can also start go-hls-hosting using Docker.
With Binary
You can download binary from release page.
Integrate with ngrok
With ngrok, you can publish generated playlists.
Author
Licence
This work is published under the MIT license.
Please see the LICENSE file for details.