VideoPersonalizationOption
@interface VideoPersonalizationOption : PersonalizationOption
VideoPersonalizationOption represents a Voucher customization which will be available to the user to add videos in the VoucherCreationViewController. Instantiate a VideoPersonalizationOption if you would like the user to be able to add videos to their Voucher.
*
-
Theme used on the
FullScreenCameraViewController.Note
Default isVouchrConfigdefaultTheme.Declaration
Objective-C
@property (assign, readwrite, nonatomic) VouchrTheme *takeAVideoVouchrTheme;Swift
var takeAVideoVouchrTheme: VouchrTheme! { get set } -
Allows Youtube videos to be added.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canAddYoutubeVideos;Swift
var canAddYoutubeVideos: Bool { get } -
Allows the user to add a self recorded video.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canTakeVideo;Swift
var canTakeVideo: Bool { get } -
The maximum time length a video can have.
Note
Default is ___.Declaration
Objective-C
@property (readonly, nonatomic) NSInteger maxVideoLength;Swift
var maxVideoLength: Int { get } -
The maximum size a video can have.
Note
Default is ___.Declaration
Objective-C
@property (readonly, nonatomic) NSInteger maxVideoSize;Swift
var maxVideoSize: Int { get } -
The level of compression that is being applied to a video.
Note
Default is ‘MediumQuality’.Declaration
Objective-C
@property (readonly, nonatomic) VideoExportPreset videoCompressionLevel;Swift
var videoCompressionLevel: VideoExportPreset { get } -
The maximum number of videos returned by Youtube API. Setting to zero to enable pagination and fetch all results.
Note
Default is 0.Declaration
Objective-C
@property (readonly, nonatomic) NSInteger maxYoutubeSearchResults;Swift
var maxYoutubeSearchResults: Int { get } -
Allows the user to search Youtube.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canSearchYoutube;Swift
var canSearchYoutube: Bool { get } -
Allows the video to be clipped.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canClipYoutube;Swift
var canClipYoutube: Bool { get } -
Converts a string to enum
VideoExportPreset.Declaration
Objective-C
- (VideoExportPreset)videoExportPresetFromString:(NSString *)exportPresetName;Swift
func videoExportPreset(from exportPresetName: String!) -> VideoExportPresetParameters
exportPresetName- string value of the
VideoExportPreset.Return Value
VideoExportPresetenum value. -
Converts a
VideoExportPresetenum to a string.Declaration
Objective-C
- (NSString *)stringFromVideoExportPreset:(VideoExportPreset)exportPresetName;Swift
func string(from exportPresetName: VideoExportPreset) -> String!Parameters
exportPresetName-
VideoExportPresetenum value.Return Value
string version of VideoExportPreset.
-
Creates a video personalization option with the values from the builder. Internally calls initWithBuilder.
Declaration
Objective-C
+ (instancetype)videoPersonalizationOptionWithBuilderBlock: (void (^)(VideoPersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((VideoPersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the builder block with specified values for each property.
Return Value
instancetype - VideoPersonalizationOption object.
View on GitHub
VideoPersonalizationOption Class Reference