gortmp icon indicating copy to clipboard operation
gortmp copied to clipboard

Connect issues

Open ghost opened this issue 9 years ago • 4 comments

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?

ghost avatar May 04 '15 12:05 ghost

Can you get the logs on server side?

zhangpeihao avatar May 05 '15 01:05 zhangpeihao

Unfortunately, no - However i can add that librtmp's RTMP string conn=S:ROOM works in librtmp if that is to any help.

ghost avatar May 05 '15 16:05 ghost

I believe this is because gortmp doesn't implement SWF verification.

ghost avatar Jun 01 '15 00:06 ghost

I don't think SWF verification is ideal for connecting right now.

GoelBiju avatar Sep 16 '16 09:09 GoelBiju