QRVideoEditor 0.1.5

QRVideoEditor 0.1.5

yangqingren1yangqingren维护。



  • 杨庆人

QRVideoEditor

CI Status Version License Platform

示例

要运行示例项目,首先克隆仓库,然后在示例目录中运行 pod install

需求

/**
 timeRange

 * @param url video path
 * @param startTime
 CMTimeMakeWithSeconds(0, videoAsset.duration.timescale);

 * @param endTime
 * CMTimeMake(a,b)
 CMTimeMakeWithSeconds(a,b)

 * @param fileName video name .mp4
 * @param completion urlPath

 * If you need clipping video clips, then insert startTime and endTime to intercept the video.The parameters of video interception should be noted in CMTime format.
 */
+ (void)videoEditByTimeRangeWithUrl:(NSURL *)url startTime:(CMTime)startTime endTime:(CMTime)endTime fileName:(NSString *)fileName completion:(void (^)(NSString *urlPath))completion;

/**
 expression or watermark

 * @param url video path
 * @param image The expression and watermark you need to add
 * @param frame The expression you need to add and the location of the watermark.
 * @param fileName video name .mp4
 * @param completion urlPath
 */
+ (void)videoEditByImageWithUrl:(NSURL *)url image:(UIImage *)image frame:(CGRect)frame fileName:(NSString *)fileName completion:(void (^)(NSString *urlPath))completion;

/**
 text or barrage

 * @param url video path
 * @param textLayer The text or barrage you need to add
 * @param frame The text you need to add and the location of the watermark.
 * @param fileName video name .mp4
 * @param completion urlPath
 */
+ (void)videoEditByTextWithUrl:(NSURL *)url textLayer:(CATextLayer *)textLayer frame:(CGRect)frame fileName:(NSString *)fileName completion:(void (^)(NSString *urlPath))completion;

安装

QRVideoEditor 通过 CocoaPods 提供使用。要安装它,只需将以下行添加到 Podfile 中即可。

pod 'QRVideoEditor'

作者

yangqingren, [email protected]

许可协议

QRVideoEditor遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。