IVSQuality

Objective-C


@interface IVSQuality : NSObject

Swift

class IVSQuality : NSObject

Represents a selection of video/audio tracks from the loaded media.

  • Unavailable

    Do not create instances of this class directly

    Declaration

    Objective-C

    IVS_INIT_UNAVAILABLE
  • Unavailable

    Do not create instances of this class directly

    Declaration

    Objective-C

    IVS_INIT_UNAVAILABLE
  • Name of the quality, suitable for use in a user interface.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • Codec string representing the media codec information; e.g., "avc1.64002A,mp4a.40.2".

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull codecs;

    Swift

    var codecs: String { get }
  • Bitrate of the media in bits per second (bps).

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger bitrate;

    Swift

    var bitrate: Int { get }
  • Native video framerate (in frames/sec) or zero if unknown or not applicable.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float framerate;

    Swift

    var framerate: Float { get }
  • Native video width (in pixels) or zero if unknown or not applicable.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger width;

    Swift

    var width: Int { get }
  • Native video height (in pixels) or zero if unknown or not applicable.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger height;

    Swift

    var height: Int { get }

Comparison and equality

  • Returns a comparison value that indicates ordering relative to another instance.

    Declaration

    Objective-C

    - (NSComparisonResult)compare:(nonnull IVSQuality *)other;

    Swift

    func compare(_ other: IVSQuality) -> ComparisonResult

    Parameters

    other

    Another instance created for the same URL

  • Returns a boolean value that indicates whether a given quality is equal to another.

    Declaration

    Objective-C

    - (BOOL)isEqualToQuality:(nonnull IVSQuality *)other;

    Swift

    func isEqual(to other: IVSQuality) -> Bool

    Parameters

    other

    Another instance created for the same URL