FLStreamConcurrencyFactory
public enum FLStreamConcurrencyFactory
The factory class for module FLStreamConcurrency.
This class has methods to create types exposed by this module.
-
streamConcurrencyConfiguration(endPoint:streamConcurrencySyncInterval: maxAllowedRetries: retryDelayInSec: ) API to construct
StreamConcurrencyConfigurationconformed value type referenceDeclaration
Swift
public static func streamConcurrencyConfiguration(endPoint: String, streamConcurrencySyncInterval: TimeInterval = 30000, maxAllowedRetries: Int = 2, retryDelayInSec: Double = 1) -> StreamConcurrencyConfigurationParameters
endPointThe server url for stream concurrency service
streamConcurrencySyncIntervalThe time interval used to perform the stream check for the currently playing content
maxAllowedRetriesThe no of retires allowed for network failure. Default value is 2 seconds
retryDelayInSecDelay between failure and retry attempt. Default value is 1 second
-
API to construct ‘StreamConcurrencyService’ conformed reference type instance.
Declaration
Swift
public static func streamConcurrencyService(endPoint: String, token: String? = nil, httpClient: HTTPClient = FLFoundationFactory.httpClient(), authorizer: PlatformAuthorizer) -> StreamConcurrencyServiceParameters
endPointThe server url for stream concurrency service
tokenThe heartbeat token to be sent.
authorizerPlatformAuthorizer for creating authorized network request.Check
PlatformAuthorizerfor further details -
API to construct
StreamConcurrencyManagerconformed reference type instance.Declaration
Swift
public static func streamConcurrencyManager(configuration: StreamConcurrencyConfiguration, deviceId: String, streamConcurrencyService: StreamConcurrencyService, authorizer: PlatformAuthorizer) -> StreamConcurrencyManagerParameters
configurationThe configuration for the stream concurrency managerr. Check
StreamConcurrencyConfigurationfor further details.deviceIdThe unique identifier of the device playing the stream
streamConcurrencyServiceStreamConcurrency Service as optional param
authorizerPlatformAuthorizer for creating authorized network request.Check
PlatformAuthorizerfor further details