gortmp
gortmp copied to clipboard
Connect issues
I'm trying to connect to a Tinychat server, and sending the room as the first connection parameter, without success.
func main() {
l := log.NewStderrLogger()
l.SetMainLevel(4)
defer l.Close()
rtmp.InitLogger(l)
handler := &ConnHandler{}
obConn, err := rtmp.Dial("rtmp://host:port/tinyconf", handler, 100)
if err != nil {
fmt.Printf("Conn err: %s\n", err)
os.Exit(1)
}
defer obConn.Close()
err = obConn.Connect("ROOM", "none", "show", "tinychat")
if err != nil {
fmt.Printf("Conn err: %s\n", err)
os.Exit(1)
}
for {
}
}
Output:
2015/05/04 14:21:03 Handshake() FMS version is 0.0.0.0
2015/05/04 14:21:03 Buffer(signatureResp):
09 0c ef 72 3e 06 5a af 8b 47 cf 21 1c dc 96 e3
ff 41 3c b8 61 84 fb 50 c1 06 6a 60 3a 83 f4 53
2015/05/04 14:21:03 Handshake OK
2015/05/04 14:21:03 Message(connect){CID: 3, Type: 20, Timestamp: 0, Size: 244, StreamID: 0, IsInbound: false, AbsoluteTimestamp: 0}
Any ideas?
Can you get the logs on server side?
Unfortunately, no - However i can add that librtmp's RTMP string conn=S:ROOM
works in librtmp if that is to any help.
I believe this is because gortmp doesn't implement SWF verification.
I don't think SWF verification is ideal for connecting right now.