stream-server/rtmp/amf/decode.go

16 lines
252 B
Go
Raw Normal View History

2023-08-10 23:53:23 +05:00
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
}