JWSource

@interface JWSource : NSObject

An object providing info about quality levels of a video.

  • URL of a file representing video quality

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) NSString *_Nonnull file;
  • A label to be shown in the quality dropdown for this quality

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) NSString *_Nonnull label;
  • Determines whether current quality is the default.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL defaultQuality;
  • A dictionary containing asset initialization options.

    Declaration

    Objective-C

    @property (nonatomic, retain, readwrite, nullable) NSDictionary *assetOptions;
  • Initializes source with file and label.

    Declaration

    Objective-C

    + (nonnull instancetype)sourceWithFile:(nonnull NSString *)file
                                     label:(nonnull NSString *)label;

    Parameters

    file

    URL of a file representing video quality.

    label

    A label to be shown in the quality dropdown for this quality.

  • Convenience method that initilizes source with provided file, label and sets it to default.

    Declaration

    Objective-C

    + (nonnull instancetype)sourceWithFile:(nonnull NSString *)file
                                     label:(nonnull NSString *)label
                                 isDefault:(BOOL)defaultQuality;

    Parameters

    file

    URL of a file representing video quality.

    label

    A label to be shown in the quality dropdown for this quality.

    defaultQuality

    Determines whether this quality is the default option.

  • Initializes source with file and label. Sets source as default.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFile:(nonnull NSString *)file
                                   label:(nonnull NSString *)label
                               isDefault:(BOOL)defaultQuality;

    Parameters

    file

    URL of a file representing video quality.

    label

    A label to be shown in the quality dropdown for this quality.

    defaultQuality

    Determines whether this quality is the default option.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;