Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect issues #15

Open
ghost opened this issue May 4, 2015 · 4 comments
Open

Connect issues #15

ghost opened this issue May 4, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented May 4, 2015

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?

@zhangpeihao
Copy link
Owner

Can you get the logs on server side?

@ghost
Copy link
Author

ghost commented May 5, 2015

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

@ghost
Copy link
Author

ghost commented Jun 1, 2015

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

@GoelBiju
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants