harlanc / xiu

A simple,high performance and secure live media server in pure Rust (RTMP[cluster]/RTSP/WebRTC[whip/whep]/HTTP-FLV/HLS).🦀
https://www.rustxiu.com
MIT License
1.6k stars 168 forks source link

I want to manage hls and httpflv in single port not with different different port #119

Open kumaraguru1735 opened 2 months ago

kumaraguru1735 commented 2 months ago

I want to manage hls and httpflv in single port not with different different port

In SRS I manage HLS, DASH, HTTP-SERVER, FLV in single port (8080) itself, so I can use https using nginx for this protocols

suzp1984 commented 2 months ago

HLS is static file service basically, so I guess it's not complicated to let http server support both http-flv and a static file service on same port.

harlanc commented 2 months ago

@suzp1984 The logic is not difficult to implement. But currently, rtmp and http-flv are two separate creates. I don’t really want to have a reference relationship between these two libraries, so I think how to implement it elegantly needs to be carefully considered..

kumaraguru1735 commented 2 months ago

RTMP need to run on 1935 Like that Flv,dash,m3u8 all need to run in single port Example:8080