stream-server/rtmp/amf/decode.go
2023-08-11 13:12:12 +05:00

13 lines
273 B
Go

package amf
type AMFObj map[interface{}]interface{}
func DecodeAMF(data *[]byte) (AMFObj, error) {
obj := make(AMFObj)
test := make(AMFObj)
obj[0] = "connect"
obj[1] = float64(1)
obj[2] = test
test["tcUrl"] = "rtmp://test-domain.nil/Desktop/tmp"
return obj, nil
}