mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
18 lines
446 B
Swift
18 lines
446 B
Swift
import Foundation
|
|
|
|
struct Preference: Sendable {
|
|
// Temp
|
|
static nonisolated(unsafe) var `default` = Preference()
|
|
|
|
// var uri = "http://192.168.1.14:1985/rtc/v1/whip/?app=live&stream=livestream"
|
|
var uri = "rtmp://192.168.1.7/live"
|
|
var streamName = "live"
|
|
|
|
func makeURL() -> URL? {
|
|
if uri.contains("rtmp://") {
|
|
return URL(string: uri + "/" + streamName)
|
|
}
|
|
return URL(string: uri)
|
|
}
|
|
}
|