PlayKitManager

@objc
public class PlayKitManager : NSObject

Manager class used for:

  • creating Player objects.
  • creating and registering plugins.
  • Undocumented

    Declaration

    Swift

    @objc
    public static let versionString: String
  • Undocumented

    Declaration

    Swift

    @objc
    public static let clientTag: String
  • Undocumented

    Declaration

    Swift

    @objc(sharedInstance)
    public static let shared: PlayKitManager
  • Loads and returns a player object using a provided configuration.

    Important

    In order to start buffering the video after loading the player you must call prepare on the player with the same configuration.

    player = PlayKitManager.sharedInstance.loadPlayer(config: config)
    player.prepare(config)
    

    Declaration

    Swift

    @objc
    public func loadPlayer(pluginConfig: PluginConfig?) throws -> Player

    Parameters

    pluginConfig

    The configuration object to load the player with.

    Return Value

    A player loaded using the provided configuration.

  • Undocumented

    Declaration

    Swift

    @objc
    public func registerPlugin(_ pluginClass: BasePlugin.Type)
  • sets the logging level for our logger.

    Declaration

    Swift

    @objc
    public static var logLevel: PKLogLevel { get set }