将保活请求由OPTIONS改为GET_PARAMETER(来自VLC保活参考)

This commit is contained in:
mqh
2020-08-28 09:26:57 +08:00
parent 8b1892209d
commit d89f1e2405

View File

@@ -309,7 +309,7 @@ func (client *RTSP) startStream() {
headers := make(map[string]string)
headers["Require"] = "implicit-play"
// An OPTIONS request returns the request types the server will accept.
if err := client.RequestNoResp("OPTIONS", headers); err != nil {
if err := client.RequestNoResp("GET_PARAMETER", headers); err != nil {
// ignore...
}
}