livego icon indicating copy to clipboard operation
livego copied to clipboard

HLS VOD support?

Open KudryavtsevDmitry opened this issue 3 years ago • 5 comments

Hello. I have several questions about features

Does it support HLS VOD? If so, does it make it on-the-fly packaging (without writing/storing chunks on disk)

KudryavtsevDmitry avatar Mar 09 '22 12:03 KudryavtsevDmitry

Yes, it was already implemented this way.

Gwestone avatar Mar 13 '22 18:03 Gwestone

Do you have examples and/or documentation with description of how to setup hls vod from flv/ts files?

KudryavtsevDmitry avatar Mar 16 '22 19:03 KudryavtsevDmitry

I mean it doesn't save files on disk, convert RTMP to HLS on the fly, by default. If you need to save chunks on disk use Nginx RTMP plugin

Gwestone avatar Mar 16 '22 19:03 Gwestone

I'm not about RTMP to HLS. I'm about flv, ts files to HLS VOD (video-on-demand). Let say we put some sample.ts file somewhere in a directory. Then we start livego server, and we can play HLS VOD (video-on-demand) through url like this HLS:http://127.0.0.1:7002/{appname}/sample.m3u8 is it possbile/supported? If yes, how to setup this?

KudryavtsevDmitry avatar Mar 17 '22 13:03 KudryavtsevDmitry

If I understand you, do you need some directory with ts and m3u8 files to be served to the internet? Then you need to just set up a file server that will serve files from disk to internet, it can be done with plain Nginx: https://docs.nginx.com/nginx/admin-guide/web-server/serving-static-content/

Gwestone avatar Mar 17 '22 15:03 Gwestone