SimpleSessionProvider

@objc
public class SimpleSessionProvider : NSObject, SessionProvider

A SessionProvider that just reflects its input parameters – baseUrl, partnerId, ks. This class does not attempt to manage (create, renew, validate, clear) a session. The application is expected to provide a valid KS, which it can update as required via the ks property. For some use cases, the KS can be null (anonymous media playback, if allowed by access-control).

  • Undocumented

    Declaration

    Swift

    public let serverURL: String
  • Undocumented

    Declaration

    Swift

    public let partnerId: Int64
  • ks

    Undocumented

    Declaration

    Swift

    public var ks: String?
  • Build a SessionProvider with the specified parameters.

    Declaration

    Swift

    @objc
    public init(serverURL: String, partnerId: Int64, ks: String?)

    Parameters

    serverURL

    Kaltura Server URL, such as "https://cdnapisec.kaltura.com".

    partnerId

    Kaltura partner id.

    ks

    Kaltura Session token.

  • Undocumented

    Declaration

    Swift

    @objc
    public func loadKS(completion: @escaping (String?, Error?) -> Void)