OTVCustomerSSMDelegate
@objc
public class OTVCustomerSSMDelegate : NSObject, OTVLicenseDelegate
The OTVCustomerSSMDelegate class provides default implemetation to conform to the OTVLicenseDelegate
protocol.
When a license is requested, it will use the license callback from the OTVCustomerSSMCallback
conforming delegate, expecting
a response OTVSSMLicenseResponse
containing the license data and a heartbeat period in seconds.
On receipt of a non-zero positive heartbeat period the first license request will start the heartbeat, starting at 0+heartbeat seconds.
It is the respoisibility of the calling application to stop the heartbeat when required by calling the ‘reset’ function.
-
OTVCustomerSSMDelegate must be initialised with the Fairplay certificate data
Declaration
Swift
public init(certificate: Data)
Parameters
certificate
the Fairplay certificate data
-
setCallback simply sets a delegate that must conform to the
OTVCustomerSSMCallback
protocolDeclaration
Swift
public func setCallback(_ callback: OTVCustomerSSMCallback?)
Parameters
callback
delegate conforming to
OTVCustomerSSMCallback
protocol
-
Returns the certificate that integrator uses in the server side.
Declaration
Swift
public func certificate() -> Data?
-
Returns the scheme that the integrator uses in the
EXT-X-KEY
URI.Declaration
Swift
public func scheme() -> String?
-
Returns the content identifier that the integrator uses in the server side.
Declaration
Swift
public func contentIdentifier(url: URL) -> Data?
-
ckcMessage is part of the
OTVLicenseDelegate
protocol Here we use it to call the license callback supplied by the calling application and, if sucessful, to also start the heartbeat, calling the supplied heartbeat callbackDeclaration
Swift
public func ckcMessage(spc: Data) -> Data?
Parameters
spc
payload passed to the external license request callback
-
Calling ‘reset’ stops the heartbeat timer. No subsequent heartbeat can start until ‘reset’ has been called
Declaration
Swift
final public func reset()