PlayerFactory
@available(iOS 14.0, tvOS 14.0, *)
public class PlayerFactory
Factory to create a Player instance.
-
Returns the player SDK version number.
Declaration
Swift
public static var sdkVersion: String { get } -
Creates a player instance configured via the provided
PlayerConfig.Declaration
Swift
public static func create(playerConfig: PlayerConfig = PlayerConfig()) -> PlayerParameters
playerConfigplayer configuration
Return Value
Player instance
-
Declaration
Swift
public static func _registerModuleFactories<T>(_ factory: @escaping (Player) -> T) where T : _PlayerModule
PlayerFactory Class Reference