mirror of
https://github.com/aler9/gortsplib
synced 2025-10-30 02:01:57 +08:00
add VLC authentication workaround
This commit is contained in:
@@ -20,6 +20,15 @@ const (
|
||||
serverSessionCheckStreamPeriod = 1 * time.Second
|
||||
)
|
||||
|
||||
func stringsReverseIndex(s, substr string) int {
|
||||
for i := len(s) - 1 - len(substr); i >= 0; i-- {
|
||||
if s[i:i+len(substr)] == substr {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
func setupGetTrackIDPathQuery(
|
||||
url *base.URL,
|
||||
thMode *headers.TransportMode,
|
||||
|
||||
Reference in New Issue
Block a user