stream-server/rtmp/amf/decode.go
2023-08-10 23:53:23 +05:00

15 lines
252 B
Go

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
}