TuSDKTSMovieCompresser Class Reference

Inherits from NSObject
Declared in TuSDKTSMovieCompresser.h

Overview

视频压缩工具

1、设置码率压缩视频 2、设置码率的压缩比进行压缩 3、消除视频的音轨

– initWithMoviePath:

初始化TuSDKTSMovieCompresser

- (instancetype)initWithMoviePath:(NSString *)moviePath

Parameters

moviePath

视频地址

Return Value

TuSDKTSMovieCompresser

Declared In

TuSDKTSMovieCompresser.h

– startCompressing

开始压缩视频

- (void)startCompressing

Declared In

TuSDKTSMovieCompresser.h

– startCompressingWithCompletionHandler:

开始压缩视频 block回调

- (void)startCompressingWithCompletionHandler:(void ( ^ ) ( NSString *outputFilePath , CGFloat progress , lsqMovieCompresserSessionStatus status ))handler

Parameters

handler

完成回调处理

Declared In

TuSDKTSMovieCompresser.h

– cancelCompresser

取消压缩操作

- (void)cancelCompresser

Declared In

TuSDKTSMovieCompresser.h