From ac5834a12e150f588d0cdcbf26cfd64fcbb30efd Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Thu, 10 Aug 2023 23:53:23 +0500 Subject: [PATCH] Add amf encoding package, test code --- rtmp/amf/decode.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 rtmp/amf/decode.go diff --git a/rtmp/amf/decode.go b/rtmp/amf/decode.go new file mode 100644 index 0000000..d90b501 --- /dev/null +++ b/rtmp/amf/decode.go @@ -0,0 +1,15 @@ +package amf + +import "fmt" + +type AMFObj map[interface{}]interface{} + +func DecodeAMF(data *[]byte) (AMFObj, error) { + obj := make(AMFObj) + test := make(AMFObj) + fmt.Println("a") + obj[2] = test + fmt.Println(obj) + test["tcUrl"] = "test" + return obj, nil +}