mirror of
https://github.com/eerimoq/moblin.git
synced 2026-07-04 15:06:48 +00:00
Keep SRT(LA) URL query parameters entered in create stream wizard.
This commit is contained in:
@@ -74,9 +74,10 @@ extension Model {
|
||||
break
|
||||
case .srt:
|
||||
if var urlComponents = URLComponents(string: createStreamWizard.customSrtUrl.trim()) {
|
||||
urlComponents.queryItems = [
|
||||
URLQueryItem(name: "streamid", value: createStreamWizard.customSrtStreamId.trim()),
|
||||
]
|
||||
urlComponents.queryItems?.removeAll(where: { $0.name == "streamid" })
|
||||
urlComponents.queryItems?.append(
|
||||
URLQueryItem(name: "streamid", value: createStreamWizard.customSrtStreamId.trim())
|
||||
)
|
||||
if let fullUrl = urlComponents.url {
|
||||
return fullUrl.absoluteString
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user