mirror of https://bitbucket.org/ausocean/av.git
Using my rtmpParseURL- tested and working
This commit is contained in:
parent
0bac388843
commit
3a56d47244
|
@ -398,8 +398,8 @@ func startSession(rtmp *C.RTMP, u string, timeout uint32) (*C.RTMP, error) {
|
|||
rtmpInit(rtmp)
|
||||
//C.RTMP_Init(rtmp)
|
||||
rtmp.Link.timeout = connect_timeout
|
||||
// if rtmpSetupUrl(rtmp, u) == 0 {
|
||||
if C.RTMP_SetupURL(rtmp, C.CString(u)) == 0 {
|
||||
if rtmpSetupUrl(rtmp, u) == 0 {
|
||||
// if C.RTMP_SetupURL(rtmp, C.CString(u)) == 0 {
|
||||
C.RTMP_Close(rtmp)
|
||||
C.RTMP_Free(rtmp)
|
||||
return nil, errors.New("rtmp startSession: Failed to setup URL!")
|
||||
|
|
Loading…
Reference in New Issue