mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
14 lines
407 B
Swift
14 lines
407 B
Swift
import Foundation
|
|
import HaishinKit
|
|
|
|
public struct RTMPSessionFactory: StreamSessionFactory {
|
|
public let supportedProtocols: Set<String> = ["rtmp", "rtmps"]
|
|
|
|
public init() {
|
|
}
|
|
|
|
public func make(_ uri: URL, mode: StreamSessionMode, configuration: (any StreamSessionConfiguration)?) -> any StreamSession {
|
|
return RTMPSession(uri: uri, mode: mode, configuration: configuration)
|
|
}
|
|
}
|