SourceFactory
@available(iOS 14.0, tvOS 14.0, *)
@objc(BMPSourceFactory)
public class SourceFactory : NSObject
Factory to create Source
s which can be loaded into a Player.
-
Creates a source configured via the provided SourceConfig.
Declaration
Swift
@available(*, deprecated, renamed: "createSource(from:﹚") @objc(createFrom:) public static func create(from sourceConfig: SourceConfig) -> Source
-
Creates a source configured via the provided
SourceConfig
.Declaration
Swift
@objc(createSourceFrom:) public static func createSource( from sourceConfig: SourceConfig ) -> Source
-
Declaration
Swift
public static func _registerModuleFactories<T>(_ factory: @escaping (Source) -> T) where T : _SourceModule
-
Creates a
Source
instance where Analytics can be configured via the providedSourceConfig
and theBitmovinAnalyticsConfig
.Declaration
Swift
@available(*, deprecated, renamed: "createSource(from:sourceMetadata:﹚") static func create( from sourceConfig: SourceConfig, sourceMetadata: SourceMetadata ) -> Source
Parameters
sourceConfig
Source configuration
sourceMetadata
Source metadata for Analytics
Return Value
Source
instance -
Creates a
Source
instance where Analytics can be configured via the providedSourceConfig
and theBitmovinAnalyticsConfig
.Declaration
Swift
@objc(createSourceFrom:sourceMetadata:) static func createSource( from sourceConfig: SourceConfig, sourceMetadata: SourceMetadata ) -> Source
Parameters
sourceConfig
Source configuration
sourceMetadata
Source metadata for Analytics
Return Value
Source
instance