BMPDrmLicenseInformation

Objective-C

@interface BMPDrmLicenseInformation : NSObject
/**
 The duration in seconds how long this DRM license is valid.
 */
@property (nonatomic, readonly) NSTimeInterval licenseDuration;
/**
 The duration in seconds how long this DRM license is valid after playback was started for the first time.
 */
@property (nonatomic, readonly) NSTimeInterval playbackDuration;
/// :nodoc:
- (instancetype)init NS_UNAVAILABLE;
/// :nodoc:
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)initWithLicenseDuration:(NSTimeInterval)licenseDuration
                       playbackDuration:(NSTimeInterval)playbackDuration NS_DESIGNATED_INITIALIZER;
/**
 Returns the remaining license duration in seconds.

 @return the remaining license duration in seconds.
 */
- (NSTimeInterval)remainingLicenseDuration;
@end

Swift

class DrmLicenseInformation : NSObject

Undocumented

  • The duration in seconds how long this DRM license is valid.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval licenseDuration;

    Swift

    var licenseDuration: TimeInterval { get }
  • The duration in seconds how long this DRM license is valid after playback was started for the first time.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval playbackDuration;

    Swift

    var playbackDuration: TimeInterval { get }
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithLicenseDuration:(NSTimeInterval)licenseDuration
                           playbackDuration:(NSTimeInterval)playbackDuration NS_DESIGNATED_INITIALIZER;

    Swift

    init(licenseDuration: TimeInterval, playbackDuration: TimeInterval)
  • Returns the remaining license duration in seconds.

    Declaration

    Objective-C

    - (NSTimeInterval)remainingLicenseDuration;

    Swift

    func remainingLicenseDuration() -> TimeInterval

    Return Value

    the remaining license duration in seconds.