OTVDRM
@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
-
Declaration
Objective-C
@property (nonatomic, class, readonly, strong) OTVDRM * _Nonnull shared
-
Returns the DRMInfo supported for the device.
returns: An array of OTVDRMInfo objects for the users device.
Declaration
Objective-C
- (NSArray<OTVDRMInfo *> *_Nonnull)getDRMInfo;
-
Returns the OTVDRMInfo support of the contentType passed in.
- Parameters:
- drmName: Name of the Drm, the only support DRM on iOS FPS is com.apple.fps
- mediaType: Not needed for this platform, just pass an empty string.
- contentType: The contentType used for the detection: “MIMEType;codecs=hvc1” && “MIMEType;codecs=avc1 are the only two supported in this call”
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.
Declaration
Objective-C
- (NSArray<OTVDRMInfo *> *_Nonnull) getDRMInfoWithDrmName:(NSString *_Nonnull)drmName mediaType:(NSString *_Nonnull)mediaType contentType:(NSString *_Nonnull)contentType;
-
Declaration
Objective-C
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;