PSPDFGalleryVideoItem
Objective-C
@interface PSPDFGalleryVideoItem : PSPDFGalleryItem
Swift
class GalleryVideoItem : GalleryItem
A video item in a gallery. This class uses the class cluster design pattern.
-
Indicates if the item should start playing automatically. Defaults to
false
.Declaration
Objective-C
@property (nonatomic) BOOL autoplayEnabled;
Swift
var autoplayEnabled: Bool { get set }
-
Indicates if the playback should loop. Defaults to
false
.Declaration
Objective-C
@property (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 (nonatomic, copy) NSArray<NSNumber *> *_Nonnull preferredVideoQualities;
Swift
var preferredVideoQualities: [NSNumber] { get set }
-
The initial seek time. Defaults to
0.0
.Declaration
Objective-C
@property (nonatomic) NSTimeInterval seekTime;
Swift
var seekTime: TimeInterval { get set }
-
The start of the video in seconds. Defaults to
nil
.Declaration
Objective-C
@property (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 (nonatomic, nullable) NSNumber *endTime;
Swift
var endTime: NSNumber? { get set }
-
The cover mode used. Defaults to
PSPDFGalleryVideoItemCoverModePreview
.Declaration
Objective-C
@property (nonatomic) PSPDFGalleryVideoItemCoverMode coverMode;
Swift
var coverMode: GalleryVideoItem.CoverMode { get set }
-
The time in seconds at which the cover view should be captured. Only applicable if
coverMode
is set toPSPDFGalleryVideoItemCoverModePreview
.Declaration
Objective-C
@property (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 (nonatomic, readonly, nullable) NSURL *content;
Swift
var content: URL? { get }
-
This method is the designated initializer for all internal classes of the class cluster.
Declaration
Objective-C
- (nonnull instancetype)initInternallyWithDictionary: (nonnull NSDictionary<PSPDFGalleryItemProperty, id> *)dictionary;
Swift
init(internallyWith dictionary: [GalleryItem.Property : Any])