mirror of
https://github.com/Monibuca/plugin-hdl.git
synced 2025-09-26 21:01:15 +08:00
feat: add meta data into flv download file
This commit is contained in:
6
pull.go
6
pull.go
@@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user