From: qydysky Date: Thu, 30 Mar 2023 04:14:45 +0000 (+0000) Subject: Improve 完善录制事件 X-Git-Tag: v0.8.0~8^2~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=b98cb1cafbe098b8f56e2975b60d086373adbcfc;p=bili_danmu%2F.git Improve 完善录制事件 --- diff --git a/Reply/stream.go b/Reply/stream.go index 3a7ad77..307311b 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -764,6 +764,7 @@ func (t *M4SStream) saveStreamFlv() (e error) { // fmt.Println("write front_buf") out.Write(t.first_buf) t.Stream_msg.PushLock_tag(`data`, t.first_buf) + t.msg.Push_tag(`load`, t) } if len(t.first_buf) != 0 && keyframe.Size() != 0 { t.bootBufPush(keyframe.GetPureBuf()) @@ -977,6 +978,7 @@ func (t *M4SStream) saveStreamM4s() (e error) { out.Write(t.first_buf, true) out.Sync() } + t.msg.Push_tag(`load`, t) } t.putM4s(download_seq[k]) download_seq = append(download_seq[:k], download_seq[k+1:]...)