13 lines
273 B
Go
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
|
|
}
|