-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from DolbyIO/feature/merge-debug-features-into…
…-main Merge debug features into main
- Loading branch information
Showing
25 changed files
with
628 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
Sources/DolbyIORTSCore/Model/SubscriptionConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// SubscriptionConfiguration.swift | ||
// | ||
|
||
import Foundation | ||
|
||
public struct SubscriptionConfiguration { | ||
public enum Constants { | ||
public static let useDevelopmentServer = false | ||
public static let autoReconnect = true | ||
public static let videoJitterMinimumDelayInMs: UInt = 20 | ||
public static let statsDelayMs: UInt = 1000 | ||
public static let noPlayoutDelay = false | ||
public static let disableAudio = false | ||
public static let enableStats = true | ||
} | ||
|
||
public let useDevelopmentServer: Bool | ||
public let autoReconnect: Bool | ||
public let videoJitterMinimumDelayInMs: UInt | ||
public let statsDelayMs: UInt | ||
public let noPlayoutDelay: Bool | ||
public let disableAudio: Bool | ||
public let rtcEventLogPath: String? | ||
public let sdkLogPath: String? | ||
public let enableStats: Bool | ||
|
||
public init( | ||
useDevelopmentServer: Bool = Constants.useDevelopmentServer, | ||
autoReconnect: Bool = Constants.autoReconnect, | ||
videoJitterMinimumDelayInMs: UInt = Constants.videoJitterMinimumDelayInMs, | ||
statsDelayMs: UInt = Constants.statsDelayMs, | ||
noPlayoutDelay: Bool = Constants.noPlayoutDelay, | ||
disableAudio: Bool = Constants.disableAudio, | ||
rtcEventLogPath: String? = nil, | ||
sdkLogPath: String? = nil, | ||
enableStats: Bool = Constants.enableStats | ||
) { | ||
self.useDevelopmentServer = useDevelopmentServer | ||
self.autoReconnect = autoReconnect | ||
self.videoJitterMinimumDelayInMs = videoJitterMinimumDelayInMs | ||
self.statsDelayMs = statsDelayMs | ||
self.noPlayoutDelay = noPlayoutDelay | ||
self.disableAudio = disableAudio | ||
self.rtcEventLogPath = rtcEventLogPath | ||
self.sdkLogPath = sdkLogPath | ||
self.enableStats = enableStats | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.