PSPDFGalleryVideoItem


@interface PSPDFGalleryVideoItem : PSPDFGalleryItem

A video item in a gallery. This class uses the class cluster design pattern.

  • Indicates if the item should start playing automatically. Defaults to NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL autoplayEnabled;

    Swift

    var autoplayEnabled: Bool { get set }
  • Indicates if the playback should loop. Defaults to NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL loopEnabled;

    Swift

    var loopEnabled: Bool { get set }
  • Contains the order of the preferred video qualities. This only works for videos where the source is capable of providing different qualities.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic)
        NSArray<NSNumber *> *_Nonnull preferredVideoQualities;

    Swift

    var preferredVideoQualities: [NSNumber] { get set }
  • The initial seek time. Defaults to 0.0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSTimeInterval seekTime;

    Swift

    var seekTime: TimeInterval { get set }
  • The start of the video in seconds. Defaults to nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSNumber *startTime;

    Swift

    var startTime: NSNumber? { get set }
  • The end time of the video in seconds. Defaults to nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSNumber *endTime;

    Swift

    var endTime: NSNumber? { get set }
  • Calculates the playable range from startTime and endTime.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CMTimeRange playableRange;

    Swift

    var playableRange: CMTimeRange { get }
  • The cover mode used. Defaults to PSPDFGalleryVideoItemCoverModePreview.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFGalleryVideoItemCoverMode coverMode;

    Swift

    var coverMode: PSPDFGalleryVideoItemCoverMode { get set }
  • The cover image URL. Defaults to nil. - note: The coverMode must be set to PSPDFGalleryVideoItemCoverModeImage for this property to have an effect.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSURL *coverImageURL;

    Swift

    var coverImageURL: URL? { get set }
  • The time in seconds at which the cover view should be captured. Only applicable if coverMode is set to PSPDFGalleryVideoItemCoverModePreview.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        NSNumber *coverPreviewCaptureTime;

    Swift

    var coverPreviewCaptureTime: NSNumber? { get set }
  • An PSPDFGalleryVideoItem has an URL to a video as its content.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSURL *content;

    Swift

    var content: URL? { get }