mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-10-04 23:32:54 +08:00
将保活请求由OPTIONS改为GET_PARAMETER(来自VLC保活参考)
This commit is contained in:
@@ -309,7 +309,7 @@ func (client *RTSP) startStream() {
|
|||||||
headers := make(map[string]string)
|
headers := make(map[string]string)
|
||||||
headers["Require"] = "implicit-play"
|
headers["Require"] = "implicit-play"
|
||||||
// An OPTIONS request returns the request types the server will accept.
|
// 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...
|
// ignore...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user