go-hls-hosting generates LIVE, CHASE playlists from your given VOD playlist, and allows you to access those VOD, LIVE, CHASE playlists individually.
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 |
You can also start go-hls-hosting using Docker.
You can download binary from release page.
With ngrok, you can publish generated playlists.
- Taku Semba
- Github - (https://github.com/takusemba)
- Twitter - (https://twitter.com/takusemba)
- Facebook - (https://www.facebook.com/takusemba)
This work is published under the MIT license. Please see the LICENSE file for details.