nareix / joy4

Golang audio/video library and streaming server
MIT License
2.68k stars 500 forks source link

can not publish stream to aliyun live service #109

Closed suconghou closed 3 years ago

suconghou commented 4 years ago

example rtmp_publish

can not publish stream to aliyun live service but both obs and ffmpeg can .

The first bug I have found is that TcUrl has query in connect I fix it

func getTcUrl(u *url.URL) string {
    app, _ := SplitPath(u)
    nu := *u
    nu.Path = "/" + app
    return strings.SplitN(nu.String(), "?", 2)[0]
}

But It still can not work , may be you miss releaseStream FCPublish or something else , i don't know , would you please fix it .