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 +}