illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.89k stars 1.51k forks source link

Node media server ignores hls_time=1:hls_list_size=1 #601

Open AleksandarKomazec opened 9 months ago

AleksandarKomazec commented 9 months ago

Hi there. My goal is to get the low-latency real-time stream. So I put this config. tasks: [ { app: "live", hls: true, hlsFlags: "[hls_time=1:hls_list_size=1:hls_flags=delete_segments]", dash: false, }, But what I found is that each segment is 8 seconds long. My idea was to reduce segments to 1 second or even smaller and to keep just the last segment saved. So when the client of the RC camera joins the server, It receives the newest stream segment.