From: qydysky Date: Mon, 26 Jun 2023 14:51:28 +0000 (+0000) Subject: Improve 录播播放日志 X-Git-Tag: v0.10.0~15 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=8b7aa98130ff129579068015b21b0ce26af4bfd9;p=bili_danmu%2F.git Improve 录播播放日志 --- diff --git a/Reply/F.go b/Reply/F.go index 80c4cd1..212c59d 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1416,6 +1416,13 @@ func init() { speed = s } } + + go func() { + flog.L(`T: `, r.RemoteAddr, `接入录播`, v) + <-r.Context().Done() + flog.L(`T: `, r.RemoteAddr, `断开录播`, v) + }() + if e := f.CopyToIoWriter(w, int64(speed), true); e != nil { flog.L(`E: `, e) }