TuSDKMovieEditorOptions Class Reference

Inherits from NSObject
Declared in TuSDKMovieEditorOptions.h

Overview

视频编辑组件(TuSDKMovieEditor)配置项

  inputURL

输入视频源 URL > Asset

@property (nonatomic) NSURL *inputURL

Declared In

TuSDKMovieEditorOptions.h

  inputAsset

输入视频源 URL > Asset

@property (nonatomic) AVAsset *inputAsset

Declared In

TuSDKMovieEditorOptions.h

  cutTimeRange

裁剪范围 (开始时间~持续时间 单位:/s)

@property (nonatomic) TuSDKTimeRange *cutTimeRange

Declared In

TuSDKMovieEditorOptions.h

  minCutDuration

最小裁剪持续时间 单位:/s (默认不限制 开发者可根据需要自行配置)

@property (nonatomic) NSUInteger minCutDuration

Declared In

TuSDKMovieEditorOptions.h

  maxCutDuration

最大裁剪持续时间 单位:/s (默认不限制 开发者可根据需要自行配置)

@property (nonatomic) NSUInteger maxCutDuration

Declared In

TuSDKMovieEditorOptions.h

  saveToAlbum

保存到系统相册 (默认保存, 当设置为NO时, 保存到临时目录)

@property (nonatomic) BOOL saveToAlbum

Declared In

TuSDKMovieEditorOptions.h

  saveToAlbumName

保存到系统相册的相册名称

@property (nonatomic, copy) NSString *saveToAlbumName

Declared In

TuSDKMovieEditorOptions.h

  regionViewColor

视频覆盖区域颜色 (默认:[UIColor blackColor])

@property (nonatomic, retain) UIColor *regionViewColor

Declared In

TuSDKMovieEditorOptions.h

  canvasColor

画布区域背景颜色 (默认:[UIColor blackColor])

@property (nonatomic, retain) UIColor *canvasColor

Availability

v3.2.1

Declared In

TuSDKMovieEditorOptions.h

  fileType

导出视频的文件格式(默认:lsqFileTypeQuickTimeMovie)

@property (nonatomic, assign) lsqFileType fileType

Declared In

TuSDKMovieEditorOptions.h

  outputURL

导出视频的文件路径

@property (nonatomic, strong) NSURL *outputURL

Declared In

TuSDKMovieEditorOptions.h

  encodeVideoQuality

设置编码时视频的画质

@property (nonatomic, strong) TuSDKVideoQuality *encodeVideoQuality

Declared In

TuSDKMovieEditorOptions.h

  )

是否按照实际速度预览 默认:YES

@property (readwrite, nonatomic) BOOL playAtActualSpeed DEPRECATED_MSG_ATTRIBUTE ( "Not recommended, use time effects" )

Declared In

TuSDKMovieEditorOptions.h

  enableVideoSound

预览时是否播放视频原音, 默认 NO:预览和保存后的视频,无声音

@property (nonatomic, assign) BOOL enableVideoSound

Declared In

TuSDKMovieEditorOptions.h

  enableTranscoding

是否开启转码 默认:NO 开启后 SDK 将会根据视频信息优化视频。 如果使用时间特效,该配置项建议启用。

@property (nonatomic) BOOL enableTranscoding

Availability

v3.0

Declared In

TuSDKMovieEditorOptions.h

  waterMarkImage

设置水印图片,最大边长不宜超过 500

@property (nonatomic) UIImage *waterMarkImage

Declared In

TuSDKMovieEditorOptions.h

  waterMarkPosition

水印位置,默认 lsqWaterMarkBottomRight

@property (nonatomic) lsqWaterMarkPosition waterMarkPosition

Declared In

TuSDKMovieEditorOptions.h

  pictureEffectOptions

画面特效配置项

@property (nonatomic, readonly) TuSDKMovieEditorPictureEffectOptions *pictureEffectOptions

Availability

v3.0.1

Declared In

TuSDKMovieEditorOptions.h

  outputSizeOptions

视频输出尺寸、比例配置项 设置视频资产后可用

@property (nonatomic, readonly) TuSDKMovieEditorOutputSizeOptions *outputSizeOptions

Availability

v3.3.2

Declared In

TuSDKMovieEditorOptions.h

  prviewSizeOptions

视频预览尺寸、比例配置项 设置视频资产后可用

@property (nonatomic, readonly) TuSDKMovieEditorOutputSizeOptions *prviewSizeOptions

Availability

v3.4.2

Declared In

TuSDKMovieEditorOptions.h

+ defaultOptions

获取默认配置项

+ (TuSDKMovieEditorOptions *_Nonnull)defaultOptions

Return Value

TuSDKMovieEditorOptions

Declared In

TuSDKMovieEditorOptions.h