q191201771 / lal

🔥 Golang audio/video live streaming lib/client/server. support RTMP, RTSP(RTP/RTCP), HLS, HTTP[S]/WebSocket-FLV/TS, GB28181, H264/H265/AAC/G711/OPUS, relay, cluster, record, HTTP Notify/API/UI. 直播

Home Page:https://pengrl.com/lal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hls 流 ID 获取不准确

ixugo opened this issue · comments

问题

hls 播放有两种方式
http://localhost:8080/hls/<streamID>.m3u8
http://localhost:8080/hls/<streamID>/playlist.m3u8
后者的播放,在 /api/stat/group 接口中会导致产生 流 ID 不一样,根据上面图片中的函数,后者拿到的 流 id 是 playlist.m3u8

导致 sub 统计的数据不准确。

image

image

commented

感谢PR,已经merge了。