Other Classes
The following classes are available globally.
-
The OTVCustomerSSMDelegate class provides default implemetation to conform to the
See moreOTVLicenseDelegate
protocol. When a license is requested, it will use the license callback from theOTVCustomerSSMCallback
conforming delegate, expecting a responseOTVSSMLicenseResponse
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.Declaration
Objective-C
@interface OTVCustomerSSMDelegate : NSObject <OTVLicenseDelegate>
-
Declaration
Objective-C
@interface OTVDRM : NSObject /// The shared <code>OTVDRMInfo</code> instance. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) OTVDRM * _Nonnull shared;) + (OTVDRM * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; /// Returns the DRMInfo supported for the device. /// /// returns: /// An array of OTVDRMInfo objects for the users device. - (NSArray<OTVDRMInfo *> * _Nonnull)getDRMInfo SWIFT_WARN_UNUSED_RESULT; /// Returns the OTVDRMInfo support of the contentType passed in. /// <ul> /// <li> /// Parameters: /// </li> /// <li> /// drmName: Name of the Drm, the only support DRM on iOS FPS is com.apple.fps /// </li> /// <li> /// mediaType: Not needed for this platform, just pass an empty string. /// </li> /// <li> /// contentType: The contentType used for the detection: “MIMEType;codecs=hvc1” && “MIMEType;codecs=avc1 are the only two supported in this call” /// </li> /// </ul> /// /// returns: /// An array of OTVDRMInfo objects for the users device based on if the contentType passed is supported and the security level of that support. - (NSArray<OTVDRMInfo *> * _Nonnull)getDRMInfoWithDrmName:(NSString * _Nonnull)drmName mediaType:(NSString * _Nonnull)mediaType contentType:(NSString * _Nonnull)contentType SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end
-
OTVDrmInfo class represents the capability and security level for a DRM key system and content type Currently the only two supported Codecs for this class are AVC1 and HVC1 HVC1 codec is only supported on devices newer then iOS 11 and depending on the devices the DRM security level will differ between otvDRMSLHWDecode & otvDRMSLSW. If a device is older than iOS 11 this api will return a nil OTVDRMInfo object inside of the array for HVC1 codecs.
See moreDeclaration
Objective-C
@interface OTVDRMInfo : NSObject
-
Declaration
Objective-C
@interface OTVIframeTracks : NSObject @property (nonatomic, readonly) NSInteger bandwith; @property (nonatomic, readonly) NSInteger averageBandwidth; @property (nonatomic, readonly, copy) NSString * _Nullable uri; @property (nonatomic, readonly, copy) NSString * _Nullable codecs; @property (nonatomic, readonly) CGSize resolution; @end
-
The media information of the
See moreOTVPersistenceAsset
Declaration
Objective-C
@interface OTVMediaInfo : NSObject
-
Declaration
Objective-C
@interface OTVMediaTracks : NSObject @property (nonatomic, readonly, copy) NSString * _Nullable type; @property (nonatomic, readonly, copy) NSString * _Nullable name; @property (nonatomic, readonly, copy) NSString * _Nullable language; @property (nonatomic, readonly, copy) NSString * _Nullable isDefault; @property (nonatomic, readonly, copy) NSString * _Nullable autoSelect; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end
-
Declaration
Objective-C
@interface OTVOutputDeviceMonitor : NSObject - (void)observeValueForKeyPath:(NSString * _Nullable)keyPath ofObject:(id _Nullable)object change:(NSDictionary<NSKeyValueChangeKey, id> * _Nullable)change context:(void * _Nullable)context; @end
-
Declaration
Objective-C
@interface OTVPersistLicenseInfo : NSObject /// The license duration in seconds @property (nonatomic) int64_t duration; /// The license Info passed from the token in the form of a JSON String. @property (nonatomic, copy) NSString * _Nullable licenseInfomation; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end
-
The OTVSSMLicenseResponse is a container class used to hold the full license response (license/ckc data, the heartbeat period and the renewal type)
Declaration
Objective-C
@interface OTVSSMLicenseResponse : NSObject
-
Declaration
Objective-C
@interface OTVStreamDrmInfo : NSObject /// The DRM type of the <code>OTVPersistenceAsset</code> @property (nonatomic, readonly) enum OTVPersistenceDRMType drmType; /// The DRM key information data from manifest @property (nonatomic, readonly, copy) NSString * _Nonnull keyInfo; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end
-
The stream information of the
See moreOTVPersistenceAsset
Declaration
Objective-C
@interface OTVStreamInfo : NSObject