Add amf encoding package, test code
This commit is contained in:
parent
58d12652e5
commit
ac5834a12e
1 changed files with 15 additions and 0 deletions
15
rtmp/amf/decode.go
Normal file
15
rtmp/amf/decode.go
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue