feat: add meta data into flv download file

This commit is contained in:
langhuihui
2024-08-02 11:34:04 +08:00
parent 71a7d39a34
commit 269fb472e9

View File

@@ -115,7 +115,11 @@ func (puller *HDLPuller) Pull() (err error) {
puller.WriteAVCCVideo(puller.absTS, &frame, puller.pool)
}
case codec.FLV_TAG_TYPE_SCRIPT:
puller.Info("script", zap.ByteString("data", mem.Value))
var amf util.AMF
amf.Buffer = mem.Value
obj, _ := amf.Unmarshal()
obj, err = amf.Unmarshal()
puller.Info("script", zap.Any("meta", obj))
frame.Recycle()
}
}