PlayerCoreFactory

@available(iOS 14.0, tvOS 14.0, *)
public enum PlayerCoreFactory

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 createPlayer(playerConfig: PlayerConfig = PlayerConfig()) -> Player

    Parameters

    playerConfig

    Player configuration

    Return Value

    Player instance