Add amf encoding package, test code

This commit is contained in:
Muaz Ahmad 2023-08-10 23:53:23 +05:00
parent 58d12652e5
commit ac5834a12e

15
rtmp/amf/decode.go Normal file
View file

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