Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TakuSemba/go-hls-hosting

generates LIVE, CHASE playlists from your given VOD playlist, then publish their playlists individually.
https://github.com/TakuSemba/go-hls-hosting

golang hls media streaming

Last synced: about 1 month ago
JSON representation

generates LIVE, CHASE playlists from your given VOD playlist, then publish their playlists individually.

Awesome Lists containing this project

README

        

# go-hls-hosting

![test](https://github.com/TakuSemba/go-hls-hosting/workflows/test/badge.svg)
![release](https://github.com/TakuSemba/go-hls-hosting/workflows/release/badge.svg)

**go-hls-hosting** generates **LIVE**, **CHASE** playlists from your given **VOD** playlist, and allows you to access those **VOD**, **LIVE**, **CHASE** playlists individually.

alt text

## 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](https://github.com/TakuSemba/go-hls-hosting/tree/master/sampledata) directory.

```sh
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](https://github.com/TakuSemba/go-hls-hosting/releases) page.

## Integrate with ngrok

With [ngrok](https://ngrok.com/), you can publish generated playlists.

alt text

## Author

* **Taku Semba**
* **Github** - (https://github.com/takusemba)
* **Twitter** - (https://twitter.com/takusemba)
* **Facebook** - (https://www.facebook.com/takusemba)

## Licence

This work is published under the MIT license.
Please see the [LICENSE](https://github.com/TakuSemba/go-hls-hosting/blob/master/LICENSE) file for details.