tencent cloud

User Generated Short Video SDK

iOS

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-11 17:46:59

TAVEditor

SDK Configuration Methods

API
Description
Set the log listener.
getSdkVersion
Get the current SDK version number.

Instance-Related Methods

API
Description
Instance initialization method.
Class initialization method.
deinit
Release the instance.
fork
Create a copy of the instance.

Resource Configuration Methods

API
Description
Append a video resource to the end and return the index after successful addition.
Insert an array of video resources at a specified position.
Append an image resource to the end; passing kCMTimeZero for duration defaults to 3 seconds.
Insert an array of image resources at a specified position; passing @(0) in durations defaults to 3 seconds.
Get the number of resources currently being edited.
Get the list of currently used resource information.
Remove the video or image resource at the specified position.
Delete all resource (video/image/template) clips.
clearAll
Clear all resources (video & BGM) and all effects.
Modify the playback time range of a specified resource.
Modify the playback rate of a specified resource (0, 3].
Adjust resource position and return whether the adjustment was successful.
Call this API to synchronously regenerate playback resources after changing resources/BGM.
Call this API to synchronously regenerate playback resources after changing resources/BGM, and execute a callback upon completion.
Time-consuming operation: generate player resources.
Bind the generated player resources to the player and execute a callback upon completion.
Set the background volume of a specified resource (0-1f).
Set the background volume of all resources (0-1f).
Get the volume of the resource at the specified index.
Set whether the video is played in reverse.
Set the rotation angle of all resources (clockwise, 0-360°).
Set the rotation angle of the video at the specified index (clockwise, 0-360°).
Set the transform for all resources.
Set the transform for a specified resource.
Set the size of all resources.
Set the size of a specified resource.
Set the crop info for a specified resource.

BGM Configuration Methods

API
Description
Add BGM. Use startAtVideoTime to set when BGM starts playing on the timeline; use timeRange to clip the music material's playback range. Returns the unique ID of the BGM material.
Delete a BGM by the unique ID generated when the BGM was added.
Delete all BGM.
Adjust the playback start position of the BGM with the specified ID in the video.
Set the playback range of the BGM with the specified ID, used to clip the music material.
Set the playback volume of the BGM with the specified ID (0-1f).
Set additional custom information for the BGM with the specified ID.
Get the additional custom information of the BGM with the specified ID.
Set the playback volume of all BGMs (0-1f).
Get the volume of the BGM with the specified ID.
Adjust the playback speed of the BGM with the specified ID (1 is normal speed).
Get the playback speed of the BGM with the specified ID.
Get the list of all currently used BGM information.

Preview Logic Methods

API
Description
Initialize the preview player. Requires a parameter (TAVPreviewParam) containing the parent container and rendering mode.
Set whether to loop playback.
Get whether loop playback is currently enabled.
play
Start playback.
Start playback from a specified time (CMTime).
pause
Pause playback.
stop
Stop playback.
refresh
Refresh the preview player.
Seek to a specified time (CMTime) for playback.
Seek to a specified time for playback and execute a callback after seek completes.
Release the player.
Get the total preview duration (requires calling flushImmediately after adding resources for an accurate value).
duration
Main track total duration (can be obtained immediately after adding resources).
isPlaying
Returns whether the player is currently playing.
Get the current playback time (NSTimeInterval).
Get the current playback time (CMTime).
Set the preview video fill mode (TAVPlayerFillMode)。
Get the current player fill mode.
Register a playback state listener (id<TAVEditorPlayerObserver>)。
Unregister the playback state listener.
Set the current rendering size (CGSize).
Get the current rendering size.
Get the complete AVAsset resource of the current player.
Get the complete AVVideoComposition of the current player.

Filter Configuration Methods

API
Description
Add a filter effect. Specify the filter material via lutPath, set the filter strength and effective time range (timeRange). Returns the unique ID generated when the filter was created.
Adjust the strength and effective time range (timeRange) of the filter with the specified ID.
Delete a filter by the unique ID generated when the filter was created.
Delete all filter effects.
Save the track index of the filter with the specified ID.
Get the list of all currently configured filter effect information.

Effect-Related Settings

API
Description
Add an effect. Specify the effect material path via path, and set the corresponding time range (timeRange) for the effect. Returns the unique ID generated when the effect was created.
Update the playback time range (timeRange) of the effect with the specified ID.
Delete an effect by the unique ID generated when the effect was created.
Delete all effects.
Save the track index of the effect with the specified ID (for business use).
Get the list of all currently configured effect information.

Export-Related Settings

API
Description
Generate and export the video. Uses a full export configuration (TAVEditorGenerateConfig); if nil is passed, default settings are used (preview resolution, 30fps, 8Mbps bitrate). Provides progress and completion callbacks.
Generate and export the video by specifying a preset export resolution (TAVVideoCompressed); provides progress and completion callbacks.
Quickly generate and export the video using a full export configuration (TAVEditorGenerateConfig); provides progress and completion callbacks.
Quickly generate and export the video by specifying a preset export resolution (TAVVideoCompressed); provides progress and completion callbacks.
Cancel the current video generation task and execute a callback after cancellation.
Pause the current video export process.
Resume the paused video export process.

Template-Related Methods

API
Description
Get the slot information (TAVTemplateConfig) of the video template at the specified path (templatePath).
Apply the video template at the specified path (templatePath). Returns TAVTemplateCode, where 0 means success, -1 means invalid path, -2 means no permission.

Other Data Operation Accessor Methods

API
Description
getPipManager
Get the PIP operation class id<ITAVPipManager>
getStickerManager
Get the sticker operation class id<ITAVStickerManager>
getVideoFrameManager
Get the thumbnail extraction operation class id<ITAVFrameProvider>
getDraftManager
Get the draft operation class id<ITAVDraftManager>

setLogLevel:listener:

Description
Set the SDK log level and log listener.
API
+(void)setLogLevel:(TAVLogLevel)logLevel listener:(id<TAVLogListener>)listener
Parameters
Parameter Name
Type
Description
logLevel
TAVLogLevel
The log level to set.
listener
Log listener for receiving logs output by the SDK. If nil is passed, the current listener will be removed.
Return Value
Type:void
Description: No return value.

initWithRenderSize:assetsPath:

Description
Initialize the SDK instance.
API
-(instancetype)initWithRenderSize:(CGSize)renderSize assetsPath:(NSString *)assetsPath;
Parameters
Parameter Name
Type
Description
renderSize
CGSize
Rendering size for the canvas, scaled by aspect ratio. Pass CGSizeZero to automatically adapt the rendering size.
assetsPath
NSString *
Model resource path.
Return Value
Type:instancetype / (TAVEditor *)
Description: The initialized SDK instance object.

editorWithRenderSize:assetsPath:

Description
Initialize the SDK instance.
API
+(instancetype)editorWithRenderSize:(CGSize)renderSize assetsPath:(NSString *)assetsPath;
Parameters
Parameter Name
Type
Description
renderSize
CGSize
Rendering size for the canvas, scaled by aspect ratio. Pass CGSizeZero to automatically adapt the rendering size.
assetsPath
NSString *
Model resource path.
Return Value
Type:instancetype
Description: The newly created editor instance object.

fork

Description
Create a deep copy of the current editor, including all editing state and configuration.
API
-(instancetype)fork;
Parameters
None
Return Value
Type:instancetype
Description: Returns a new, independent editor instance with the same state as the original.

addVideoClip:

Description
Append a video resource to the end of the editing sequence.
API
-(int)addVideoClip:(NSString *)path;
Parameters
Parameter Name
Type
Description
path
NSString *
Local path of the video material.
Return Value
Type:int
Description: Returns the index of the video clip in the sequence after successful addition. Failure: -2 means no permission; -1 means invalid parameter/path.

addVideoClips:index:

Description
Insert an array of video resource paths at the specified index.
API
-(int)addVideoClips:(NSArray *)paths index:(int)index;
Parameters
Parameter Name
Type
Description
paths
NSArray *
Array of video resource paths.
index
int
The position (index) at which to insert the resources.
Return Value
Type:int
Description: Returns the index of the first successfully added video clip in the sequence. Failure: -2 means no permission; -1 means invalid parameter/path.

addImageClip:duration:

Description
Append an image resource to the end of the editing sequence with a specified display duration.
API
-(int)addImageClip:(NSString *)path duration:(CMTime)duration;
Parameters
Parameter Name
Type
Description
path
NSString *
Local path of the image resource.
duration
CMTime
Display duration of the image on the timeline. If kCMTimeZero is passed, the default duration (typically 3 seconds) is used.
Return Value
Type:int
Description: Returns the index of the image clip in the sequence after successful addition. Failure: -2 means no permission; -1 means invalid parameter/path.

addImageClips:index:durations:

Description
Insert an array of image resource paths at the specified index, with a specified display duration for each image.
API
-(int)addImageClips:(NSArray<NSString *> *)paths index:(int)index durations:(NSArray<NSNumber *> *)durations;
Parameters
Parameter Name
Type
Description
paths
NSArray<NSString *> *
Array of image resource paths.
index
int
The position (index) at which to insert the resources.
durations
NSArray<NSNumber *> *
Array of display durations for each image, in seconds. If @0 is passed, the default duration (typically 3 seconds) is used.
Return Value
Type:int
Description: Returns the index of the first successfully added image clip in the sequence. Failure: -2 means no permission; -1 means invalid parameter/path.

getClipCount

Description
Get the total number of video and image resources on the timeline currently being edited.
API
-(int)getClipCount;
Parameters
None
Return Value
Type:int
Description: Returns the number of resources in the current editing sequence.

getClipInfos

Description
Get a detailed information list of all resources (video/image) on the current timeline.
API
-(NSArray<TAVClipInfo *> *)getClipInfos;
Parameters
None
Return Value
Type:NSArray<TAVClipInfo *> *
Description: Returns an array containing information about all current resources.

removeClip:

Description
Remove the video or image resource clip at the specified position.
API
-(void)removeClip:(int)index;
Parameters
Parameter Name
Type
Description
index
int
The index of the resource clip to remove.
Return Value
Type:void
Description: No return value.

removeAllClip

Description
Delete all resource clips on the timeline.
API
-(void)removeAllClip;
Parameters
None
Return Value
Type:void
Description: No return value.

clearAll

Description
Clear all resources (video, image, and BGM) and all effects (stickers, filters, and motion effects) on the timeline.
API
-(void)clearAll;
Parameters
None
Return Value
Type:void
Description: No return value.

setClipRange:index:

Description
Modify the playback range of a specified resource clip on the timeline (i.e., the start and end points of the trimmed clip).
API
-(void)setClipRange:(CMTimeRange)timeRange index:(int)index;
Parameters
Parameter Name
Type
Description
timeRange
CMTimeRange
The new playback range for the resource, defining the start time and duration on the timeline.
index
int
The index of the resource clip to modify.
Return Value
Type:void
Description: No return value.

setClipSpeed:index:

Description
Modify the playback rate of a specified resource clip to achieve fast or slow playback effects.
API
-(void)setClipSpeed:(CGFloat)speed index:(int)index;
Parameters
Parameter Name
Type
Description
speed
CGFloat
The playback rate to set. Valid range is (0, 3].
index
int
The index of the resource clip to modify.
Return Value
Type:void
Description: No return value.

updateClipIndex:toIndex:

Description
Adjust the position of a resource clip on the timeline.
API
-(BOOL)updateClipIndex:(int)oldIndex toIndex:(int)newIndex;
Parameters
Parameter Name
Type
Description
oldIndex
int
The index of the resource clip before adjustment.
newIndex
int
The new position index after adjustment.
Return Value
Type:BOOL
Description: Returns YES if the adjustment was successful, otherwise NO.

flushImmediately

Description
After changing resources or BGM, call this API to synchronously regenerate player resources. This method triggers a series of operations: 1. Synchronouslygenerate player resources. 2. Bind new resources to the player. 3. Asynchronouslyrestore playback state (such as playback time).
API
-(void)flushImmediately;
Parameters
None
Return Value
Type:void
Description: No return value.

flushImmediatelyCompletion:

Description
After changing resources or BGM, call this API to synchronously regenerate player resources and execute a callback upon completion. Since resource regeneration and state restoration are asynchronous time-consuming operations, it is recommended to perform player time/state queries within the completion block.
API
-(void)flushImmediatelyCompletion:(void (^)(BOOL finished))completion;
Parameters
Parameter Name
Type
Description
completion
void (^)(BOOL finished)
Callback block executed after resource update is complete.finished indicates whether the operation completed successfully.
Return Value
Type:void
Description: No return value.

preparePlayerItem

Description
Used during the player resource regeneration operation to independentlyexecute the time-consuming first step: prepare and generate AVPlayerItem
API
-(AVPlayerItem *)preparePlayerItem;
Parameters
None
Return Value
Type:AVPlayerItem *
Description: Returns the player item generated from the current editing state.

bindPlayerItem:completion:

Description
Used during the player resource regeneration operation to execute the second step: bind the prepared AVPlayerItem to the player and restore playback state.
API
-(void)bindPlayerItem:(AVPlayerItem *)playerItem completion:(void (^)(BOOL finished))completion;
Parameters
Parameter Name
Type
Description
playerItem
AVPlayerItem *
Generated via the preparePlayerItem method.
completion
void (^)(BOOL finished)
Callback block executed after binding and state restoration are complete.
Return Value
Type:void
Description: No return value.

setClipVolume:index:

Description
Set the background volume of a specified resource clip (video or image).
API
-(void)setClipVolume:(float)volume index:(int)index;
Parameters
Parameter Name
Type
Description
volume
float
The volume value to set, range [0.0, 1.0].
index
int
The index of the resource clip whose volume is to be modified.
Return Value
Type:void
Description: No return value.

setAllClipsVolume:

Description
Set the background volume of all resource clips (video and image) on the timeline.
API
-(void)setAllClipsVolume:(float)volume;
Parameters
Parameter Name
Type
Description
volume
float
The volume value to set, range [0.0, 1.0].
Return Value
Type:void
Description: No return value.

getClipVolume:

Description
Get the current volume setting of a specified resource clip.
API
-(float)getClipVolume:(int)index;
Parameters
Parameter Name
Type
Description
index
int
The index of the resource clip whose volume is to be queried.
Return Value
Type:float
Description: Returns the volume value of the specified resource [0.0, 1.0].

setReverse:

Description
Set whether all video clips on the timeline are played in reverse. (To be implemented)
API
-(void)setReverse:(BOOL)isReverse;
Parameters
Parameter Name
Type
Description
isReverse
BOOL
Set to YES for reverse playback, NO for normal playback.
Return Value
Type:void
Description: No return value.

setClipsRotation:

Description
Set a uniform rotation angle for all video and image resources on the timeline. Rotation direction is clockwise.
API
-(void)setClipsRotation:(int)rotation;
Parameters
Parameter Name
Type
Description
rotation
int
Clockwise rotation angle, range (0, 360] degrees.
Return Value
Type:void
Description: No return value.

setClipRotation:index:

Description
Set the rotation angle of a specified resource clip. Rotation direction is clockwise.
API
-(void)setClipRotation:(int)rotation index:(int)index;
Parameters
Parameter Name
Type
Description
rotation
int
Clockwise rotation angle, range (0, 360] degrees.
index
int
The index of the resource clip whose rotation is to be modified.
Return Value
Type:void
Description: No return value.

setClipTransform:

Description
Apply to all resource clips on the timeline a uniform affine transform matrix.
API
-(void)setClipTransform:(CGAffineTransform)transform;
Parameters
Parameter Name
Type
Description
transform
CGAffineTransform
The affine transform matrix to apply.
Return Value
Type:void
Description: No return value.

setClipTransform:index:

Description
Set an affine transform matrix for a specified resource clip.
API
-(void)setClipTransform:(CGAffineTransform)transform index:(int)index;
Parameters
Parameter Name
Type
Description
transform
CGAffineTransform
The affine transform matrix to apply.
index
int
The index of the resource clip whose transform is to be modified.
Return Value
Type:void
Description: No return value.

setClipSize:

Description
Set on the timeline all resource clips to a uniform display size.
API
-(void)setClipSize:(CGSize)size;
Parameters
Parameter Name
Type
Description
size
CGSize
The display size to set.
Return Value
Type:void
Description: No return value.

setClipSize:index:

Description
Set the display size of a specified resource clip.
API
-(void)setClipSize:(CGSize)size index:(int)index;
Parameters
Parameter Name
Type
Description
size
CGSize
The display size to set.
index
int
The index of the resource clip whose size is to be modified.
Return Value
Type:void
Description: No return value.

setCropInfo:index:

Description
Set the crop information of a specified resource clip.
API
-(void)setCropInfo:(TAVMediaAssetCropInfo *)cropInfo index:(int)index;
Parameters
Parameter Name
Type
Description
cropInfo
TAVMediaAssetCropInfo *
Struct containing the crop region and mode information.
index
int
The index of the resource clip whose crop info is to be set.
Return Value
Type:void
Description: No return value.

addBgm:startAtVideoTime:timeRange:

Description
Add BGM to the timeline.
API
-(int)addBgm:(NSString *)bgmPath startAtVideoTime:(CMTime)startAtVideoTime timeRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
bgmPath
NSString *
File path of the music material.
startAtVideoTime
CMTime
The time point at which BGM starts playing on the main timeline (default is 0). For example, if the main track is a 10-second video and you want BGM to start at the 5th second, pass the CMTime corresponding to 5 seconds as CMTime
timeRange
CMTimeRange
Clip range of the music material (default is the entire song). For example, if a song is 0-90 seconds long, set timeRange to clip any segment within 0-90 seconds.
Return Value
Type:int
Description: Returns the unique ID of the successfully added BGM material.

removeBgm:

Description
Delete BGM from the timeline by its unique ID.
API
-(BOOL)removeBgm:(int)bgmId;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID generated when the BGM was added.
Return Value
Type:BOOL
Description: Returns YES if deletion was successful, otherwise NO.

removeAllBgm

Description
Delete all BGMs from the timeline.
API
-(void)removeAllBgm;
Parameters
None
Return Value
Type:void
Description: No return value.

updateBgm:atVideoTime:

Description
Adjust the position where BGM starts playing on the main timeline.
API
-(void)updateBgm:(int)bgmId atVideoTime:(CMTime)startAtVideoTime;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM to modify.
startAtVideoTime
CMTime
The new start time for BGM on the main timeline.
Return Value
Type:void
Description: No return value.

updateBgm:playRange:

Description
Set the playback range of the BGM material itself (i.e., trim the BGM material).
API
-(void)updateBgm:(int)bgmId playRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM to modify.
timeRange
CMTimeRange
The new clip range of the music material.
Return Value
Type:void
Description: No return value.

setBgm:volume:

Description
Set the playback volume of a specified BGM.
API
-(void)setBgm:(int)bgmId volume:(float)volume;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM whose volume is to be modified.
volume
float
The volume value to set, range [0.0, 1.0].
Return Value
Type:void
Description: No return value.

setBgm:extraInfo:

Description
Set additional custom information for a specified BGM.
API
-(void)setBgm:(int)bgmId extraInfo:(NSDictionary *)extraInfo;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM for which to set additional info.
extraInfo
NSDictionary *
Custom additional information dictionary to save.
Return Value
Type:void
Description: No return value.

getBgmExtraInfo:

Description
Get the additional custom information of a specified BGM.
API
-(NSDictionary *)getBgmExtraInfo:(int)bgmId;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM whose additional info is to be retrieved.
Return Value
Type:NSDictionary *
Description: Returns the saved additional information dictionary.

setAllBgmVolume:

Description
Set a uniform playback volume for all BGMs on the timeline.
API
-(void)setAllBgmVolume:(float)volume;
Parameters
Parameter Name
Type
Description
volume
float
The volume value to set, range [0.0, 1.0].
Return Value
Type:void
Description: No return value.

getBgmVolume:

Description
Get the current volume setting of a specified BGM.
API
-(float)getBgmVolume:(int)bgmId;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM whose volume is to be queried.
Return Value
Type:float
Description: Returns the volume value of the specified BGM [0.0, 1.0].

setBgm:speed:

Description
Adjust the playback speed of a specified BGM.
API
-(void)setBgm:(int)bgmId speed:(float)speed;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM whose speed is to be modified.
speed
float
Playback speed. 1.0 is normal speed, greater than 1.0 is fast-forward, less than 1.0 is slow motion.
Return Value
Type:void
Description: No return value.

getBgmSpeed:

Description
Get the current playback speed of a specified BGM
API
-(float)getBgmSpeed:(int)bgmId;
Parameters
Parameter Name
Type
Description
bgmId
int
The unique ID of the BGM whose speed is to be queried.
Return Value
Type:float
Description: Returns the playback speed of the specified BGM.

getBgmInfos

Description
Get a detailed information list of all BGMs on the current timeline.
API
-(NSArray<TAVBgmInfo *> *)getBgmInfos;
Parameters
None
Return Value
Type:NSArray<TAVBgmInfo *> *
Description: Returns an array containing information about all current BGMs.

setPreview:

Description
Initialize and set up the preview player. Requires the parent container and rendering mode for the player.
API
-(void)setPreview:(TAVPreviewParam *)param;
Parameters
Parameter Name
Type
Description
param
TAVPreviewParam *
Object containing parameters such as the parent container view and rendering mode.
Return Value
Type:void
Description: No return value.

setPlayLoop:

Description
Set whether the preview player loops playback.
API
-(void)setPlayLoop:(BOOL)isLoop;
Parameters
Parameter Name
Type
Description
isLoop
BOOL
YES indicates loop playback is enabled,NO indicates single playback.
Return Value
Type:void
Description: No return value.

isPlayLoop

Description
Get whether the preview player is currently set to loop playback.
API
-(BOOL)isPlayLoop;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if currently looping, NO otherwise.

play

Description
Start playing preview content. If currently paused, resumes from the paused position; if stopped, starts from the beginning.
API
-(void)play;
Parameters
None
Return Value
Type:void
Description: No return value.

playAtTime:

Description
Start playing preview content from a specified time point.
API
-(void)playAtTime:(CMTime)time;
Parameters
Parameter Name
Type
Description
time
CMTime
The specified start playback time.
Return Value
Type:void
Description: No return value.

pause

Description
Pause the currently playing preview content.
API
-(void)pause;
Parameters
None
Return Value
Type:void
Description: No return value.

stop

Description
Stop preview playback and reset the playhead to the beginning of the timeline (typically time 0).
API
-(void)stop;
Parameters
None
Return Value
Type:void
Description: No return value.

refresh

Description
Refresh the preview player, typically used to update the display after changing rendering settings or view properties without modifying the timeline content.
API
-(void)refresh;
Parameters
None
Return Value
Type:void
Description: No return value.

seekToTime:

Description
Seek the playhead to a specified time point.
API
-(void)seekToTime:(CMTime)seekTime;
Parameters
Parameter Name
Type
Description
seekTime
CMTime
The specified seek time.
Return Value
Type:void
Description: No return value.

seekToTime:completion:

Description
Seek the playhead to a specified time point and execute a callback after the seek operation completes.
API
-(void)seekToTime:(CMTime)seekTime completion:(void (^)(BOOL finished))completion;
Parameters
Parameter Name
Type
Description
seekTime
CMTime
The specified seek time.
completion
void (^)(BOOL finished)
Callback block when seek completes.finished indicates whether the operation completed successfully.
Return Value
Type:void
Description: No return value.

destoryPlayer

Description
Release the preview player and its related resources.
API
-(void)destoryPlayer;
Parameters
None
Return Value
Type:void
Description: No return value.

getTotalDuration

Description
Get the total duration of the entire timeline (including all resources and effects). Note: After adding or modifying resources, you need to call flushImmediately first to get an accurate duration.
API
-(CMTime)getTotalDuration;
Parameters
None
Return Value
Type:CMTime
Description: Returns the total duration of the entire editing sequence.

duration

Description
Get the total duration of the main track (video/image resources). The duration can be obtained immediately after adding resources.
API
-(NSTimeInterval)duration;
Parameters
None
Return Value
Type:NSTimeInterval
Description: Returns the total duration of resources on the main track (in seconds).

isPlaying

Description
Query whether the preview player is currently playing.
API
-(BOOL)isPlaying;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if playing, NO if paused or stopped.

currentTime

Description
Get the current preview playback time (in seconds).
API
-(NSTimeInterval)currentTime;
Parameters
None
Return Value
Type:NSTimeInterval
Description: Returns the current playback time (in seconds).

currentCMTime

Description
Get the current preview playback time (as a CMTime struct).
API
-(CMTime)currentCMTime;
Parameters
None
Return Value
Type:CMTime
Description: Returns the current playback time.

setPlayerViewFillMode:

Description
Set the fill mode of the preview playback view, such as fit or fill the screen.
API
-(void)setPlayerViewFillMode:(TAVPlayerFillMode)fillMode;
Parameters
Parameter Name
Type
Description
fillMode
The preview fill mode enum to set.
Return Value
Type:void
Description: No return value.

playerViewFillMode

Description
Get the fill mode of the current preview playback view.
API
-(TAVPlayerFillMode)playerViewFillMode;
Parameters
None
Return Value
Type:TAVPlayerFillMode
Description: Returns the current player fill mode.

registerPlayerObserver:

Description
Register a playback state listener to receive callbacks for player state, time progress, and other events.
API
-(void)registerPlayerObserver:(id<TAVEditorPlayerObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVEditorPlayerObserver>
An object conforming to the TAVEditorPlayerObserver protocol.
Return Value
Type:void
Description: No return value.

resignObserver:

Description
Unregister a previously registered playback state listener.
API
-(void)resignObserver:(id<TAVEditorPlayerObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVEditorPlayerObserver>
The listener object to unregister.
Return Value
Type:void
Description: No return value.

setRenderSize:

Description
Set the final rendering canvas size.
API
-(void)setRenderSize:(CGSize)renderSize;
Parameters
Parameter Name
Type
Description
renderSize
CGSize
The rendering size (width and height) to set.
Return Value
Type:void
Description: No return value.

getRenderSize

Description
Get the current rendering canvas size.
API
-(CGSize)getRenderSize;
Parameters
None
Return Value
Type:CGSize
Description: Returns the current rendering size.

currentAVAsset

Description
Get the complete AVAsset object used by the current player, which contains all track resource information.
API
-(AVAsset *)currentAVAsset;
Parameters
None
Return Value
Type:AVAsset *
Description: Returns the AVAsset

currentComposition

Description
Get the complete AVVideoComposition object generated from the current editing state, which describes how video tracks are composed and rendered (including filters, transforms, etc.).
API
-(AVVideoComposition *)currentComposition;
Parameters
None
Return Value
Type:AVVideoComposition *
Description: Returns the video composition object generated from the current editing state.

addFilter:strength:timeRange:

Description
Set and add a filter effect to the timeline.
API
-(int)addFilter:(NSString *)lutPath strength:(float)strength timeRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
lutPath
NSString *
Path to the filter material file, typically a LUT file path.
strength
float
Filter strength, typically in the range [0.0, 1.0].
timeRange
CMTimeRange
The time range on the timeline where the filter effect is active.
Return Value
Type:int
Description: Returns the unique ID generated when the filter was created.

setFilter:Strength:timeRange:

Description
Adjust the strength and effective time range of the filter with the specified ID.
API
-(void)setFilter:(int)lutId Strength:(float)strength timeRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
lutId
int
The unique ID generated when the filter was created.
strength
float
The new filter strength.
timeRange
CMTimeRange
The new effective time range for the filter.
Return Value
Type:void
Description: No return value.

removeFilter:

Description
Delete the specified filter effect by its unique ID.
API
-(void)removeFilter:(int)lutId;
Parameters
Parameter Name
Type
Description
lutId
int
The unique ID of the filter to delete.
Return Value
Type:void
Description: No return value.

removeAllFilter

Description
Delete all filter effects set on the timeline.
API
-(void)removeAllFilter;
Parameters
None
Return Value
Type:void
Description: No return value.

setFilter:trackIndex:

Description
Save the track index for a specified filter effect. (Primarily for internal business use)
API
-(void)setFilter:(int)lutId trackIndex:(int)trackIndex;
Parameters
Parameter Name
Type
Description
lutId
int
The unique ID of the filter.
trackIndex
int
The track index to which the filter is applied.
Return Value
Type:void
Description: No return value.

getFilterInfos

Description
Get a detailed information list of all filter effects currently set on the timeline.
API
-(NSArray<TAVFilterInfo *> *)getFilterInfos;
Parameters
None
Return Value
Type:NSArray<TAVFilterInfo *> *
Description: Returns an array containing information about all current filters.

addMotionEffect:timeRange:

Description
Set and add a motion effect to the timeline.
API
-(int)addMotionEffect:(NSString *)path timeRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
path
NSString *
File path of the effect material.
timeRange
CMTimeRange
The corresponding time range on the timeline where the effect is active.
Return Value
Type:int
Description: Returns the unique ID generated when the effect was created.

updateMotionEffect:playRange:

Description
Update the playback range of the effect with the specified ID on the timeline.
API
-(void)updateMotionEffect:(int)effectId playRange:(CMTimeRange)timeRange;
Parameters
Parameter Name
Type
Description
effectId
int
The unique ID of the effect to update.
timeRange
CMTimeRange
The new display range for the effect.
Return Value
Type:void
Description: No return value.

removeMotionEffect:

Description
Delete the specified motion effect by its unique ID.
API
-(void)removeMotionEffect:(int)effectId;
Parameters
Parameter Name
Type
Description
effectId
int
The unique ID of the effect to delete.
Return Value
Type:void
Description: No return value.

removeAllMotionEffect

Description
Delete all motion effects set on the timeline.
API
-(void)removeAllMotionEffect;
Parameters
None
Return Value
Type:void
Description: No return value.

setMotionEffect:trackIndex:

Description
Save the track index for a specified motion effect. (Primarily for internal business use)
API
-(void)setMotionEffect:(int)effectId trackIndex:(int)trackIndex;
Parameters
Parameter Name
Type
Description
effectId
int
The unique ID of the effect.
trackIndex
int
The track index to which the effect is applied.
Return Value
Type:void
Description: No return value.

getEffectInfos

Description
Get a detailed information list of all motion effects currently set on the timeline.
API
-(NSArray<TAVEffectInfo *> *)getEffectInfos;
Parameters
None
Return Value
Type:NSArray<TAVEffectInfo *> *
Description: Returns an array containing information about all current motion effects.

generateVideo:outputPath:progress:completion:

Description
Generate and export the final video file based on the current editing state.
API
-(void)generateVideo:(TAVEditorGenerateConfig *)config outputPath:(NSString *)outputPath progress:(void (^)(CGFloat progress))progressBlock completion:(void (^)(NSError *error, NSString *outputPath))completion;
Parameters
Parameter Name
Type
Description
config
TAVEditorGenerateConfig *
Export configuration object for the video. If nil is passed, default configuration will be used (resolution matches preview, 30fps, bitrate of 8 * 1000 * 1000).
outputPath
NSString *
Final export path for the video file.
progressBlock
void (^)(CGFloat progress)
Export progress callback block, reporting progress values between [0.0, 1.0].
completion
void (^)(NSError *error, NSString *outputPath)
Export completion callback block. If export fails,error contains the error information;outputPath is the final successfully exported file path.
Return Value
Type:void
Description: errorError code 200001: App entered background during export; 200002: Failed to move exported file from temp directory; others are system error codes.

generateVideoWithCompressed:outputPath:progress:completion:

Description
Generate and export the final video file using a preset compression resolution configuration.
API
-(void)generateVideoWithCompressed:(TAVVideoCompressed)compressed outputPath:(NSString *)outputPath progress:(void (^)(CGFloat progress))progressBlock completion:(void (^)(NSError *error, NSString *outputPath))completion;
Parameters
Parameter Name
Type
Description
compressed
The preset resolution enum value used for video export.
outputPath
NSString *
Final export path for the video file.
progressBlock
void (^)(CGFloat progress)
Export progress callback block.
completion
void (^)(NSError *error, NSString *outputPath)
Export completion callback block.
Return Value
Type:void
Description: errorError code 200001: App entered background during export; 200002: Failed to move exported file from temp directory; others are system error codes.

quickGenerateVideo:outputPath:progress:completion:

Description
Quickly generate and export the final video file. Compared to generateVideo, this method may use more optimized settings to speed up export.
API
-(void)quickGenerateVideo:(TAVEditorGenerateConfig *)config outputPath:(NSString *)outputPath progress:(void (^)(CGFloat progress))progressBlock completion:(void (^)(NSError *error, NSString *outputPath))completion;
Parameters
Parameter Name
Type
Description
config
TAVEditorGenerateConfig *
Export configuration object for the video. If nil, default configuration will be used.
outputPath
NSString *
Final export path for the video file.
progressBlock
void (^)(CGFloat progress)
Export progress callback block.
completion
void (^)(NSError *error, NSString *outputPath)
Export completion callback block.
Return Value
Type:void
Description: errorError code 200001: App entered background during export; 200002: Failed to move exported file from temp directory; others are system error codes.

quickGenerateVideoWithCompressed:outputPath:progress:completion:

Description
Quickly generate and export the final video file using a preset compression resolution configuration.
API
-(void)quickGenerateVideoWithCompressed:(TAVVideoCompressed)compressed outputPath:(NSString *)outputPath progress:(void (^)(CGFloat progress))progressBlock completion:(void (^)(NSError *error, NSString *outputPath))completion;
Parameters
Parameter Name
Type
Description
compressed
The preset resolution enum value used for video export.
outputPath
NSString *
Final export path for the video file.
progressBlock
void (^)(CGFloat progress)
Export progress callback block.
completion
void (^)(NSError *error, NSString *outputPath)
Export completion callback block.
Return Value
Type:void
Description: errorError code 200001: App entered background during export; 200002: Failed to move exported file from temp directory; others are system error codes.

cancelGenerate:

Description
Cancel the current video generation/export operation.
API
-(void)cancelGenerate:(void(^ __nullable)(void))completion;
Parameters
Parameter Name
Type
Description
completion
void (^ __nullable)(void)
Callback block executed after the cancellation operation completes.
Return Value
Type:void
Description: No return value.

pauseGenerate

Description
Pause the current video export operation.
API
-(void)pauseGenerate;
Parameters
None
Return Value
Type:void
Description: No return value.

resumeGenerate

Description
Resume the paused video export operation.
API
-(void)resumeGenerate;
Parameters
None
Return Value
Type:void
Description: No return value.

getTemplateConfig:

Description
Get the configuration information of a specified video template file, including video/image replacement slot information.
API
-(TAVTemplateConfig * _Nullable)getTemplateConfig:(NSString * _Nullable)templatePath;
Parameters
Parameter Name
Type
Description
templatePath
NSString * _Nullable
File path of the video template material.
Return Value
Type:TAVTemplateConfig * _Nullable
Description: Returns the template configuration object; returns nil

setTemplate:

Description
Apply the specified video template to the current editor, replacing existing content on the timeline and applying the template effects.
API
-(TAVTemplateCode)setTemplate:(NSString * _Nullable)templatePath;
Parameters
Parameter Name
Type
Description
templatePath
NSString * _Nullable
File path of the video template material.
Return Value
Type:TAVTemplateCode
Description: Returns the template application status code. 0 means success, -1 means invalid path, -2 means no permission.

ITAVPipManager

API
Description
Set the PIP view data source (id<ITAVPipViewDataSource>).
Create a PIP object (TAVMediaPipItem). Specify the resource path (filePath) and media type (mediaType), where 0 is video and 1 is image.
loadPip:
Add PIP to the editor track.
Delete the specified PIP object.
Delete the currently active PIP object.
Delete all PIP objects.
Get a list of all current PIP objects.
Register a PIP context state listener (id<TAVPipContextObserver>)。
Unregister the PIP context state listener.
Get the currently active PIP object.
Activate the specified PIP object, making it the current operation target.
Deactivate the specified PIP object.
Deactivate the currently active PIP object.
Find the corresponding PIP view (TAVPipView) by PIP object (pipItem).

setPipViewDataSource:

Description
Set the PIP view data source. This data source is responsible for providing custom PIP views or related configurations.
API
-(void)setPipViewDataSource:(id<ITAVPipViewDataSource>)dataSource;
Parameters
Parameter Name
Type
Description
dataSource
id<ITAVPipViewDataSource>
An object conforming to the ITAVPipViewDataSource protocol, providing the data and logic needed for PIP views.
Return Value
Type:void
Description: No return value.

createPipItem:mediaType:

Description
Create a PIP resource object.
API
-(TAVMediaPipItem *)createPipItem:(NSString *)filePath mediaType:(NSInteger)mediaType;
Parameters
Parameter Name
Type
Description
filePath
NSString *
File path of the PIP material.
mediaType
NSInteger
Resource type: 0 for video, 1 for image.
Return Value
Type:TAVMediaPipItem *
Description: Returns the newly created PIP resource object.

loadPip:

Description
Load a PIP resource object onto the timeline.
API
-(void)loadPip:(TAVMediaPipItem *)pipItem;
Parameters
Parameter Name
Type
Description
pipItem
TAVMediaPipItem *
The PIP object to load onto the timeline.
Return Value
Type:void
Description: No return value.

removePip:

Description
Remove a specified PIP resource object from the timeline.
API
-(void)removePip:(TAVMediaPipItem *)pipItem;
Parameters
Parameter Name
Type
Description
pipItem
TAVMediaPipItem *
The PIP object to delete.
Return Value
Type:void
Description: No return value.

removeCurrentPip

Description
Remove the currently activated (in editing focus) PIP resource.
API
-(void)removeCurrentPip;
Parameters
None
Return Value
Type:void
Description: No return value.

removeAllPip

Description
Remove all PIP resources from the timeline.
API
-(void)removeAllPip;
Parameters
None
Return Value
Type:void
Description: No return value.

getAllPipItems

Description
Get a list of all PIP resources on the timeline.
API
-(NSArray<TAVMediaPipItem *> *)getAllPipItems;
Parameters
None
Return Value
Type:NSArray<TAVMediaPipItem *> *
Description: Returns an array containing all PIP objects.

addPipObserver:

Description
Register a PIP context state listener to monitor PIP activation, deactivation, and other events.
API
-(void)addPipObserver:(id<TAVPipContextObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVPipContextObserver>
An object conforming to the TAVPipContextObserver protocol.
Return Value
Type:void
Description: No return value.

removePipObserver:

Description
Unregister a previously registered PIP context state listener.
API
-(void)removePipObserver:(id<TAVPipContextObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVPipContextObserver>
The listener object to unregister.
Return Value
Type:void
Description: No return value.

getCurrentPipItem

Description
Get the currently editing/activated PIP object.
API
-(TAVMediaPipItem *)getCurrentPipItem;
Parameters
None
Return Value
Type:TAVMediaPipItem *
Description: Returns the current PIP object.

activePip:

Description
Activate the specified PIP object, putting it into editing state.
API
-(void)activePip:(TAVMediaPipItem *)pipItem;
Parameters
Parameter Name
Type
Description
pipItem
TAVMediaPipItem *
The PIP object to activate.
Return Value
Type:void
Description: No return value.

resignPip:

Description
Deactivate the specified PIP object (exit editing state).
API
-(void)resignPip:(TAVMediaPipItem *)pipItem;
Parameters
Parameter Name
Type
Description
pipItem
TAVMediaPipItem *
The PIP object to deactivate.
Return Value
Type:void
Description: No return value.

resignCurrentPip

Description
Deactivate the currently activated PIP object.
API
-(void)resignCurrentPip;
Parameters
None
Return Value
Type:void
Description: No return value.

fetchPipView:

Description
Find and return the corresponding rendering view by PIP object.
API
-(TAVPipView *)fetchPipView:(TAVMediaPipItem *)pipItem;
Parameters
Parameter Name
Type
Description
pipItem
TAVMediaPipItem *
The PIP object used to find its corresponding view.
Return Value
Type:TAVPipView *
Description: Returns the pipItem associated PIP view.

ITAVStickerManager

API
Description
Set the sticker view data source (id<ITAVStickerViewDataSource>), which must implement the method for returning sticker views.
Create a sticker object (TAVMediaStickerItem). Specify the sticker path (stickerPath) and sticker type (stickerItemType).
Load and add a sticker object to the editor track.
Delete the specified sticker object.
Delete all sticker objects.
Delete the currently active sticker.
Get the currently active sticker object (TAVMediaStickerItem).
Get the list of all sticker objects.
Find the corresponding sticker object (TAVMediaStickerItem) by TAVSticker.
Get the rendering layer object (TAVSticker) of the currently active sticker.
Get the currently active sticker view (TAVStickerView).
Get the corresponding sticker view by TAVSticker.
Get the corresponding sticker view by TAVMediaStickerItem.
Register a sticker context state observer (id<TAVStickerContextObserver>)。
Remove the sticker context state observer.
Activate a sticker: hide the sticker on the rendering layer, show the corresponding interactive view on stickerContentView.
Deactivate a sticker: show the sticker on the rendering layer, hide the corresponding interactive view on stickerContentView.
Deactivate the currently active sticker.
Deactivate all active stickers.
Get the current video display rectangle (CGRect).

setStickerViewDataSource:

Description
Set the sticker view data source. The data source must implement the stickerViewWithStickerItem method to return custom sticker views.
API
-(void)setStickerViewDataSource:(id<ITAVStickerViewDataSource>)dataSource;
Parameters
Parameter Name
Type
Description
dataSource
id<ITAVStickerViewDataSource>
The sticker view data source object.
Return Value
Type:void
Description: No return value.

createStickerItem:stickerType:

Description
Create a sticker object (TAVMediaStickerItem)。
API
-(TAVMediaStickerItem *)createStickerItem:(NSString *)stickerPath stickerType:(TAVStickerItemType)stickerItemType;
Parameters
Parameter Name
Type
Description
stickerPath
NSString *
Path to the sticker material.
stickerItemType
TAVStickerItemType
Type of the sticker resource.
Return Value
Type:TAVMediaStickerItem *
Description: Returns the newly created sticker object.

loadStickerItem:

Description
Load a sticker object onto the timeline.
API
-(void)loadStickerItem:(TAVMediaStickerItem *)stickerItem;
Parameters
Parameter Name
Type
Description
stickerItem
TAVMediaStickerItem *
The sticker object to load.
Return Value
Type:void
Description: No return value.

removeStickerItem:

Description
Delete the specified sticker object from the timeline.
API
-(void)removeStickerItem:(TAVMediaStickerItem *)stickerItem;
Parameters
Parameter Name
Type
Description
stickerItem
TAVMediaStickerItem *
The sticker object to delete.
Return Value
Type:void
Description: No return value.

removeAllStickerItem

Description
Delete all sticker objects on the timeline.
API
-(void)removeAllStickerItem;
Parameters
None
Return Value
Type:void
Description: No return value.

removeCurrentSticker

Description
Delete the currently activated (in editing focus) sticker.
API
-(void)removeCurrentSticker;
Parameters
None
Return Value
Type:void
Description: No return value.

getCurrentStickerItem

Description
Get the currently activated sticker object (TAVMediaStickerItem)。
API
-(TAVMediaStickerItem *)getCurrentStickerItem;
Parameters
None
Return Value
Type:TAVMediaStickerItem *
Description: Returns the current sticker object.

getAllStickerItems

Description
Get all sticker objects on the timeline (TAVMediaStickerItem) list.
API
-(NSArray <TAVMediaStickerItem *>*)getAllStickerItems;
Parameters
None
Return Value
Type:NSArray <TAVMediaStickerItem *>*
Description: Returns an array containing all sticker objects.

getStickerItemWithSticker:

Description
Find the corresponding sticker object (TAVSticker) by the sticker rendering layer object (TAVMediaStickerItem)。
API
-(TAVMediaStickerItem *)getStickerItemWithSticker:(TAVSticker *)sticker;
Parameters
Parameter Name
Type
Description
sticker
TAVSticker *
The sticker rendering layer object.
Return Value
Type:TAVMediaStickerItem *
Description: Returns the corresponding sticker object.

getCurrentSticker

Description
Get the rendering layer object of the currently activated sticker (TAVSticker)。
API
-(TAVSticker *)getCurrentSticker;
Parameters
None
Return Value
Type:TAVSticker *
Description: Returns the current sticker rendering layer object.

getCurrentStickerView

Description
Get the currently activated sticker view (TAVStickerView)。
API
-(TAVStickerView *)getCurrentStickerView;
Parameters
None
Return Value
Type:TAVStickerView *
Description: Returns the current sticker view.

fetchStickerView:

Description
Find the corresponding sticker view by the sticker rendering layer object (TAVSticker) and return the corresponding sticker view.
API
-(TAVStickerView *)fetchStickerView:(TAVSticker *)sticker;
Parameters
Parameter Name
Type
Description
sticker
TAVSticker *
The sticker rendering layer object.
Return Value
Type:TAVStickerView *
Description: Returns the sticker associated sticker view.

fetchStickerVIewWithItem:

Description
Find the corresponding sticker view by the sticker object (TAVMediaStickerItem) and return the corresponding sticker view.
API
-(TAVStickerView *)fetchStickerVIewWithItem:(TAVMediaStickerItem *)stickerItem;
Parameters
Parameter Name
Type
Description
stickerItem
TAVMediaStickerItem *
The sticker object.
Return Value
Type:TAVStickerView *
Description: Returns the stickerItem associated sticker view.

addStickerObserver:

Description
Add a sticker observer to monitor sticker context state changes (such as activation/deactivation).
API
-(void)addStickerObserver:(id<TAVStickerContextObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVStickerContextObserver>
An object conforming to the TAVStickerContextObserver protocol.
Return Value
Type:void
Description: No return value.

removeStickerObserver:

Description
Remove a previously added sticker observer.
API
-(void)removeStickerObserver:(id<TAVStickerContextObserver>)observer;
Parameters
Parameter Name
Type
Description
observer
id<TAVStickerContextObserver>
The observer object to remove.
Return Value
Type:void
Description: No return value.

activeStickerItem:

Description
Activate the specified sticker object, putting it into editing state (hide the sticker on the rendering layer, show the sticker on the custom view layer).
API
-(void)activeStickerItem:(TAVMediaStickerItem *)stickerItem;
Parameters
Parameter Name
Type
Description
stickerItem
TAVMediaStickerItem *
The sticker object to activate.
Return Value
Type:void
Description: No return value.

resignStickerItem:

Description
Deactivate the specified sticker object (show the sticker on the rendering layer, hide the sticker on the custom view layer).
API
-(void)resignStickerItem:(TAVMediaStickerItem *)stickerItem;
Parameters
Parameter Name
Type
Description
stickerItem
TAVMediaStickerItem *
The sticker object to deactivate.
Return Value
Type:void
Description: No return value.

resignCurrentStickerItem

Description
Deactivate the currently activated sticker.
API
-(void)resignCurrentStickerItem;
Parameters
None
Return Value
Type:void
Description: No return value.

resignAllStickerItems

Description
Deactivate all activated stickers.
API
-(void)resignAllStickerItems;
Parameters
None
Return Value
Type:void
Description: No return value.

currentVideoRect

Description
Get the display rectangle (Rect) of the current video in the preview window.
API
-(CGRect)currentVideoRect;
Parameters
None
Return Value
Type:CGRect
Description: Returns the current video display rectangle.

ITAVFrameProvider

API
Description
Async: Get an array of thumbnails for the resource at the specified main track index (clipIndex), with the specified count and size. Returns a Generator object that can be used to cancel the operation.
Async: Get a single thumbnail for the resource at the specified main track index (clipIndex) and time (pts). Returns a Generator object that can be used to cancel the operation.
Sync: Synchronously get and return the current frame thumbnail for the resource at the specified main track index (clipIndex) and time (pts).
Async: Get the rendered result frame for the specified time (pts) on the main track. isExportMode determines whether the result matches preview or export. Returns a Generator object for cancellation.
Async: Get rendered result frames for multiple time points (times) on the main track. Returns a dictionary of multiple frames, and a Generator object that can be used for cancellation.
Sync: Get the rendered result frame for the specified time (pts) on the main track. longSide specifies the length of the longest side.
Sync: Get rendered result frames for multiple time points (times) on the main track. Returns a dictionary of multiple frames.
Async: Get an array of thumbnails for the video at the specified path (videoPath), with the specified count, size, and time range. Returns a Generator object that can be used for cancellation.
Async: Get a single thumbnail for the video at the specified path (videoPath) and time (pts). Returns a Generator object that can be used for cancellation.
Sync: Synchronously get and return the current frame thumbnail for the video at the specified path (videoPath) and time (pts).
Cancel a specified generation operation, such as cancelling a thumbnail or frame generation task.

getClipThumbnail:count:size:completion:

Description
Based on the main track resource index, Asynchronouslyget an array of evenly-spaced thumbnails.
API
-(id)getClipThumbnail:(int)clipIndex count:(int)count size:(CGSize)size completion:(void (^)(NSArray *images))thumbCompletion;
Parameters
Parameter Name
Type
Description
clipIndex
int
Index of the resource file on the main track.
count
int
Number of thumbnails to generate.
size
CGSize
Size (width and height) of the thumbnails.
thumbCompletion
void (^)(NSArray *images)
Callback returning the corresponding thumbnail array.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getClipThumbnail:pts:size:completion:

Description
Based on the main track resource index and time point (pts), Asynchronouslyget the corresponding single thumbnail.
API
-(id)getClipThumbnail:(int)clipIndex pts:(CMTime)pts size:(CGSize)size completion:(void (^)(UIImage *image))thumbCompletion;
Parameters
Parameter Name
Type
Description
clipIndex
int
Index of the resource file on the main track.
pts
CMTime
Time point in the resource file.
size
CGSize
Size (width and height) of the thumbnails.
thumbCompletion
void (^)(UIImage *image)
Callback returning the corresponding thumbnail.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getClipThumbnail:pts:size:

Description
Based on the main track resource index and time point (pts), Syncget the corresponding single thumbnail.
API
-(UIImage *)getClipThumbnail:(int)clipIndex pts:(CMTime)pts size:(CGSize)size;
Parameters
Parameter Name
Type
Description
clipIndex
int
Index of the resource file on the main track.
pts
CMTime
Time point in the resource file.
size
CGSize
Size (width and height) of the thumbnails.
Return Value
Type:UIImage *
Description: Returns the current frame thumbnail.

getClipFrameAtTime:exportMode:longSide:completion:

Description
Get the corresponding rendered result frame for the main track time point (pts) - Async
API
-(id)getClipFrameAtTime:(CMTime)pts exportMode:(BOOL)isExportMode longSide:(CGFloat)length completion:(void (^)(UIImage *image))completion;
Parameters
Parameter Name
Type
Description
pts
CMTime
Time point.
isExportMode
BOOL
Whether in export mode: YES means the result matches export, NO means the result matches preview (default).
length
CGFloat
Length of the longest side of the result image; the SDK calculates the short side proportionally.
completion
void (^)(UIImage *image)
Callback returning the corresponding rendered frame image.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getClipFrameWithTimes:exportMode:longSide:completion:

Description
Get the corresponding rendered result frame for the main track time point (pts) - Async
API
-(id)getClipFrameWithTimes:(NSArray <NSValue *>*)times exportMode:(BOOL)isExportMode longSide:(CGFloat)length completion:(void (^)(NSDictionary <NSValue *, UIImage *> *images))completion;
Parameters
Parameter Name
Type
Description
times
NSArray <NSValue *>*
An array containing multiple time points (CMTime wrapped in NSValue).
isExportMode
BOOL
Whether in export mode: YES means the result matches export, NO means the result matches preview.
length
CGFloat
Length of the longest side of the result image; the SDK calculates the short side proportionally.
completion
void (^)(NSDictionary <NSValue *, UIImage *> *images)
Callback returning a dictionary of time points and corresponding rendered frame images.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getClipFrameAtTime:exportMode:longSide:

Description
Get the corresponding Rendered result frame - Sync
API
-(UIImage *)getClipFrameAtTime:(CMTime)pts exportMode:(BOOL)isExportMode longSide:(CGFloat)length;
Parameters
Parameter Name
Type
Description
pts
CMTime
Time point.
isExportMode
BOOL
Whether in export mode.
length
CGFloat
Length of the longest side of the result image; the SDK calculates the short side proportionally.
Return Value
Type:UIImage *
Description: Returns the current rendered frame image.

getClipFrameWithTimes:exportMode:longSide:

Description
Get the corresponding Rendered result frame - Sync
API
-(NSDictionary <NSValue *, UIImage *> *)getClipFrameWithTimes:(NSArray <NSValue *>*)times exportMode:(BOOL)isExportMode longSide:(CGFloat)length;
Parameters
Parameter Name
Type
Description
times
NSArray <NSValue *>*
An array containing multiple time points (CMTime wrapped in NSValue).
isExportMode
BOOL
Whether in export mode.
length
CGFloat
Length of the longest side of the result image; the SDK calculates the short side proportionally.
Return Value
Type:NSDictionary <NSValue *, UIImage *> *
Description: Returns a dictionary of time points and corresponding rendered frame images.

getThumbnail:count:size:timeRange:completion:

Description
Based on the video resource pathAsynchronouslyget an array of evenly-spaced thumbnails.
API
-(id)getThumbnail:(NSString *)videoPath count:(int)count size:(CGSize)size timeRange:(CMTimeRange)timeRange completion:(void (^)(NSArray<UIImage *> *images, NSError *error))thumbCompletion;
Parameters
Parameter Name
Type
Description
videoPath
NSString *
Path of the video resource.
count
int
Number of thumbnails to generate.
size
CGSize
Size (width and height) of the thumbnails.
timeRange
CMTimeRange
Time range for video frame extraction, defaults to the entire video duration.
thumbCompletion
void (^)(NSArray<UIImage *> *images, NSError *error)
Callback returning the corresponding thumbnail array and error information.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getThumbnail:pts:size:completion:

Description
Based on the video resource pathand time point (pts), Asynchronouslyget the corresponding single thumbnail.
API
-(id)getThumbnail:(NSString *)videoPath pts:(CMTime)pts size:(CGSize)size completion:(void (^)(UIImage *image, NSError *error))thumbCompletion;
Parameters
Parameter Name
Type
Description
videoPath
NSString *
Path of the video resource.
pts
CMTime
Time point in the resource file.
size
CGSize
Size (width and height) of the thumbnails.
thumbCompletion
void (^)(UIImage *image, NSError *error)
Callback returning the corresponding thumbnail and error information.
Return Value
Type:id
Description: Returns a Generator object that can be used to call cancelGenerate: to cancel generation.

getThumbnail:pts:size:

Description
Based on the video resource pathand time point (pts), Syncget the corresponding single thumbnail.
API
-(UIImage *)getThumbnail:(NSString *)videoPath pts:(CMTime)pts size:(CGSize)size;
Parameters
Parameter Name
Type
Description
videoPath
NSString *
Path of the video resource.
pts
CMTime
Time point in the resource file.
size
CGSize
Size (width and height) of the thumbnails.
Return Value
Type:UIImage *
Description: Returns the current frame thumbnail.

cancelGenerate:

Description
Cancel an ongoing thumbnail or frame generation task.
API
-(void)cancelGenerate:(id)generator;
Parameters
Parameter Name
Type
Description
generator
id
The Generator object returned by the getClipThumbnail... or getThumbnail... series of async methods.
Return Value
Type:void
Description: No return value.

ITAVDraftManager

API
Description
Set the draft storage path. If not set, the SDK's built-in default path is used.
Get the list of all drafts in the current storage directory (NSArray<TAVDraft *> *).
Generate a draft to the preset directory, caching all resources used by the draft into the draft directory, and delete them together with the draft.
Generate a draft to the preset directory without caching resources used by the draft; resource management is the user's responsibility.
Get the draft object currently loaded in the editor.
Load the specified draft object (draft) and execute a callback after loading is complete.
Delete the specified draft object.
Delete all drafts.
Reset/start recording the editor's operation history for a new undo/redo chain.
commit:
Commit an operation as a history checkpoint, marked as a draft. Returns whether the commit was successful.
canUndo
Returns whether the current editor state can be undone (BOOL).
canRedo
Returns whether the current editor state can be redone (BOOL).
undo:
Undo/revert to the previous operation state and execute a callback upon completion.
redo:
Redo/advance to the next operation state and execute a callback upon completion.
Add a draft state listener (id<ITAVDraftStateListener>).
Remove the draft state listener.

setDraftStorageDir:

Description
Set the draft storage path. If not set, the SDK will use the built-in default path.
API
+(void)setDraftStorageDir:(NSString *)storageDir;
Parameters
Parameter Name
Type
Description
storageDir
NSString *
Storage path for draft files.
Return Value
Type:void
Description: No return value.

readDraftList

Description
Get the list of locally stored drafts.
API
+(NSArray<TAVDraft *> *)readDraftList;
Parameters
None
Return Value
Type:NSArray<TAVDraft *> *
Description: Returns an array containing all draft objects (TAVDraft).

generateDraft

Description
Generate a draft from the current editing state and store it in the preset directory. All resources used by the draft (such as video, image, BGM, stickers, etc.)will be cached in the draft directory and cleaned up when the draft is deleted.
API
-(BOOL)generateDraft;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if draft generation was successful, NO if it failed.

generateDraftNoCacheResources

Description
Generate a draft from the current editing state and store it in the preset directory, butwithout caching resource files used by the draft; resources must be managed by the user.
API
-(BOOL)generateDraftNoCacheResources;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if draft generation was successful, NO if it failed.

getCurrentDraft

Description
Get the draft object currently loaded in the editor.
API
-(TAVDraft *)getCurrentDraft;
Parameters
None
Return Value
Type:TAVDraft *
Description: Returns the draft object in the current editor.

loadDraft:onDraftLoadingFinished:

Description
Load the specified draft object into the editor.
API
-(void)loadDraft:(TAVDraft *)draft onDraftLoadingFinished:(TAVDraftLoadingCallBack)callback;
Parameters
Parameter Name
Type
Description
draft
TAVDraft *
The draft object to load.
callback
TAVDraftLoadingCallBack
Callback function after draft loading is complete.
Return Value
Type:void
Description: No return value.

deleteDraft:

Description
Delete the specified draft file.
API
+(void)deleteDraft:(TAVDraft *)draft;
Parameters
Parameter Name
Type
Description
draft
TAVDraft *
The draft object to delete.
Return Value
Type:void
Description: No return value.

deleteAllDrafts

Description
Delete all locally stored draft files.
API
+(void)deleteAllDrafts;
Parameters
None
Return Value
Type:void
Description: No return value.

resetDraftRecord

Description
Reset or start recording a new draft history, clearing the current undo/redo history.
API
-(void)resetDraftRecord;
Parameters
None
Return Value
Type:void
Description: No return value.

commit:

Description
Commit a draft history record. This method should be called after a user operation to record an undoable state.
API
-(BOOL)commit:(NSString *)tag;
Parameters
Parameter Name
Type
Description
tag
NSString *
A tag value to mark this commit.
Return Value
Type:BOOL
Description: Returns YES if the commit was successful, NO if it failed.

canUndo

Description
Check whether the current editing state can perform an undo operation.
API
-(BOOL)canUndo;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if undoable, NO if not.

canRedo

Description
Check whether the current editing state can perform a redo operation.
API
-(BOOL)canRedo;
Parameters
None
Return Value
Type:BOOL
Description: Returns YES if redoable, NO if not.

undo:

Description
Perform the undo/revert to previous state operation.
API
-(void)undo:(TAVDraftActionCallBack)callback;
Parameters
Parameter Name
Type
Description
callback
TAVDraftActionCallBack
Callback function after the undo operation completes.
Return Value
Type:void
Description: No return value.

redo:

Description
Perform the redo/advance to next state operation.
API
-(void)redo:(TAVDraftActionCallBack)callback;
Parameters
Parameter Name
Type
Description
callback
TAVDraftActionCallBack
Callback function after the redo operation completes.
Return Value
Type:void
Description: No return value.

addDraftStateListener:

Description
Add a draft state listener to monitor draft-related state changes (such as undo/redo status).
API
-(void)addDraftStateListener:(id<ITAVDraftStateListener>)listener;
Parameters
Parameter Name
Type
Description
listener
id<ITAVDraftStateListener>
An object conforming to the ITAVDraftStateListener protocol.
Return Value
Type:void
Description: No return value.

removeDraftStateListener:

Description
Remove a previously added draft state listener.
API
-(void)removeDraftStateListener:(id<ITAVDraftStateListener>)listener;
Parameters
Parameter Name
Type
Description
listener
id<ITAVDraftStateListener>
The listener to remove.
Return Value
Type:void
Description: No return value.

TAVLogListener

API
Description
Log listener callback.

onLog:logMessage:

Description
Log listener callback Block. When the SDK generates internal logs, they are delivered to the listener via this method.
API
-(void)onLog:(TAVLogLevel)loggerLevel logMessage:(NSString * _Nonnull)logMessage;
Parameters
Parameter Name
Type
Description
loggerLevel
TAVLogLevel
Returns the current log level.
logMessage
NSString * _Nonnull
Returns the current log message.
Return Value
Type:void
Description: No return value.

TAVEditorPlayerObserver

API
Description
Called when the media resource (AVPlayerItem) bound to the player changes.
Called when the playback progress changes, with the current playback time (CMTime) as a parameter.
Called when the player's playback state (TAVPlaybackState, such as play, pause, stop, etc.) changes.
Called when the player's playback speed changes.
Called when the player reaches the end of playback (playback complete).
Called when the video's rendering area or rectangle (videoRect) changes.

mediaPlayerItemDidChange:

Description
Callback method called when the media player's playback item (AVPlayerItem) changes.
API
-(void)mediaPlayerItemDidChange:(AVPlayerItem *)playerItem;
Parameters
Parameter Name
Type
Description
playerItem
AVPlayerItem *
The new media player playback item object.
Return Value
Type:void
Description: No return value.

mediaPlayerProgressDidChange:

Description
Callback method called when the media player's current playback progress (time) changes.
API
-(void)mediaPlayerProgressDidChange:(CMTime)currentTime;
Parameters
Parameter Name
Type
Description
currentTime
CMTime
The current playback time point.
Return Value
Type:void
Description: No return value.

mediaPlayerStateDidChange:

Description
Callback method called when the media player's playback state (such as play, pause, buffering, etc.) changes.
API
-(void)mediaPlayerStateDidChange:(TAVPlaybackState)state;
Parameters
Parameter Name
Type
Description
state
The new state of the media player.
Return Value
Type:void
Description: No return value.

mediaPlayerSpeedDidChange:

Description
Callback method called when the media player's playback speed changes.
API
-(void)mediaPlayerSpeedDidChange:(CGFloat)speed;
Parameters
Parameter Name
Type
Description
speed
CGFloat
The new playback speed of the media player.
Return Value
Type:void
Description: No return value.

mediaPlayerDidPlayToEnd

Description
Callback method called when the media player finishes playback and reaches the end.
API
-(void)mediaPlayerDidPlayToEnd;
Parameters
None
Return Value
Type:void
Description: No return value.

mediaPlayerVideoRectDidChange:

Description
Callback method called when the rendering rectangle of the video content in the media player (videoRect) changes.
API
-(void)mediaPlayerVideoRectDidChange:(CGRect)videoRect;
Parameters
Parameter Name
Type
Description
videoRect
CGRect
The new rendering rectangle of the video content.
Return Value
Type:void
Description: No return value.

TAVPipContextObserver

API
Description
Called when the PIP view is shown. This usually occurs when the PIP object is activated and ready for on-screen interaction.
Called when the PIP view is hidden. This usually occurs when the PIP object is deactivated or temporarily invisible.
Called when the PIP view is removed. This usually occurs when the PIP object is permanently deleted from the editor.
Called when the PIP view is deactivated. Indicates that the view is no longer the current user's primary operation target.
Called when the PIP view is activated. Indicates that the view has become the current user's primary operation target.

didShowPipView:

Description
Callback method called when the PIP view (TAVPipView) is shown.
API
-(void)didShowPipView:(TAVPipView *)pipView;
Parameters
Parameter Name
Type
Description
pipView
TAVPipView *
The PIP view object currently being shown.
Return Value
Type:void
Description: No return value.

didHidePipView:

Description
Callback method called when the PIP view (TAVPipView) is hidden.
API
-(void)didHidePipView:(TAVPipView *)pipView;
Parameters
Parameter Name
Type
Description
pipView
TAVPipView *
The PIP view object currently being hidden.
Return Value
Type:void
Description: No return value.

didRemovePipView:

Description
Callback method called when the PIP view (TAVPipView) is removed from the rendering layer.
API
-(void)didRemovePipView:(TAVPipView *)pipView;
Parameters
Parameter Name
Type
Description
pipView
TAVPipView *
The PIP view object currently being removed.
Return Value
Type:void
Description: No return value.

didResignPipView:

Description
Callback method called when the PIP view (TAVPipView) is deactivated (exits editing focus).
API
-(void)didResignPipView:(TAVPipView *)pipView;
Parameters
Parameter Name
Type
Description
pipView
TAVPipView *
The PIP view object currently being deactivated.
Return Value
Type:void
Description: No return value.

didActivePipView:

Description
Callback method called when the PIP view (TAVPipView) is activated (enters editing focus).
API
-(void)didActivePipView:(TAVPipView *)pipView;
Parameters
Parameter Name
Type
Description
pipView
TAVPipView *
The PIP view object currently being activated.
Return Value
Type:void
Description: No return value.

TAVStickerContextObserver

API
Description
Notifies the delegate when the sticker list changes (e.g., after adding or deleting stickers).
Notifies the delegate when the currently active sticker object changes.
Notifies the delegate that the video frame needs to be refreshed (e.g., sticker position, scale, etc. changed, requiring a redraw).
Notifies the delegate when a specified sticker view is activated (typically meaning the user starts editing that sticker).
Notifies the delegate when a specified sticker view is deactivated (resigned).
Notifies the delegate when a specified sticker view is removed.
Notifies the delegate when a specified sticker view is shown.
Notifies the delegate when a specified sticker view is hidden.

stickerContextStickerListDidChange:

Description
Notifies the delegate that the sticker list (the collection of stickers on the timeline) has changed (e.g., stickers were added or deleted).
API
-(void)stickerContextStickerListDidChange:(TAVStickerContext *)context;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
Return Value
Type:void
Description: No return value.

stickerContextCurrentStickerDidChange:

Description
Notifies the delegate that the currently activated or focused sticker has changed.
API
-(void)stickerContextCurrentStickerDidChange:(TAVStickerContext *)context;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
Return Value
Type:void
Description: No return value.

stickerContextShouldRefreshVideoFrame:

Description
Notifies the delegate that the video frame should be refreshed or redrawn, typically called when sticker content changes and the preview needs to be updated immediately.
API
-(void)stickerContextShouldRefreshVideoFrame:(TAVStickerContext *)context;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
Return Value
Type:void
Description: No return value.

stickerContext:didActiveSticker:

Description
Notifies the delegate that the specified sticker view has been activated (entered editing state).
API
-(void)stickerContext:(TAVStickerContext *)context didActiveSticker:(TAVStickerView *)stickerView;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
stickerView
TAVStickerView *
The sticker view that was activated.
Return Value
Type:void
Description: No return value.

stickerContext:didResignSticker:

Description
Notifies the delegate that the specified sticker view has been deactivated (exited editing state).
API
-(void)stickerContext:(TAVStickerContext *)context didResignSticker:(TAVStickerView *)stickerView;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
stickerView
TAVStickerView *
The sticker view that was deactivated.
Return Value
Type:void
Description: No return value.

stickerContext:didRemoveSticker:

Description
Notifies the delegate that the specified sticker view has been removed (from the rendering layer).
API
-(void)stickerContext:(TAVStickerContext *)context didRemoveSticker:(TAVStickerView *)stickerView;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
stickerView
TAVStickerView *
The sticker view that was removed.
Return Value
Type:void
Description: No return value.

stickerContext:didShowSticker:

Description
Notifies the delegate that the specified sticker view has been shown.
API
-(void)stickerContext:(TAVStickerContext *)context didShowSticker:(TAVStickerView *)stickerView;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
stickerView
TAVStickerView *
The sticker view that was shown.
Return Value
Type:void
Description: No return value.

stickerContext:didHideSticker:

Description
Notifies the delegate that the specified sticker view has been hidden.
API
-(void)stickerContext:(TAVStickerContext *)context didHideSticker:(TAVStickerView *)stickerView;
Parameters
Parameter Name
Type
Description
context
TAVStickerContext *
The sticker context object reporting this event.
stickerView
TAVStickerView *
The sticker view that was hidden.
Return Value
Type:void
Description: No return value.

Enum Type Descriptions

TAVPlayerFillMode

Description
The media player's video fill mode, used to determine how video content adapts to the boundaries of its playback view.
Type
typedef NS_ENUM(NSUInteger, TAVPlayerFillMode);
Enum Value
Raw Value
Description
TAVPlayerFillModeAspectFit
0
Aspect Fit: Maintains the video content's aspect ratio, fitting the entire video within the view boundaries. The video may not fill the entire view, and black bars may appear (similar to AVLayerVideoGravityResizeAspect)。
TAVPlayerFillModeAspectFill
1
Aspect Fill: Maintains the video content's aspect ratio, filling the entire view boundaries. The video may be cropped, ensuring no black bars appear (similar to AVLayerVideoGravityResizeAspectFill)。
TAVPlayerFillModeFill
2
Scale to Fill: Does not maintain the video content's aspect ratio, stretching or scaling directly to fill the entire view boundaries. The video may be distorted (similar to AVLayerVideoGravityResize)。

TAVVideoCompressed

Description
Compression resolution mode for video export, used to specify the maximum resolution of the video during export.
Type
typedef NS_ENUM(NSInteger, TAVVideoCompressed);
Enum Value
Raw Value
Description
TAVVideoCompressed480P
0
480P Resolution: The video will be compressed to 640 × 480 resolution (maximum long side of 640).
TAVVideoCompressed540P
1
540P Resolution: The video will be compressed to 960 × 540 resolution (maximum long side of 960).
TAVVideoCompressed720P
2
720P Resolution
TAVVideoCompressed1080P
3
1080P Resolution: The video will be compressed to 1920 × 1080 resolution (maximum long side of 1920).

TAVEditorMediaType

Description
Type of media resources in the editor. This is a bitmask enum, allowing a resource to have multiple types simultaneously (e.g., both video and audio).
Type
typedef NS_ENUM(NSInteger, TAVEditorMediaType);
Enum Value
Raw Value
Description
TAVEditorMediaTypeUnknown
0
Unknown Type
TAVEditorMediaTypeVideo
1 << 0 (i.e., 1)
Video Type: Represents that the resource contains a video track.
TAVEditorMediaTypeAudio
1 << 1 (i.e., 2)
Audio Type: Represents that the resource contains an audio track.
TAVEditorMediaTypeImage
1 << 2 (i.e., 4)
Photo Type: Represents that the resource is a static image.

TAVPlaybackState

Description
Playback state enum of the media player, representing the player's current lifecycle or activity state.
Type
typedef NS_ENUM(NSInteger, TAVPlaybackState);
Enum Value
Raw Value
Description
TAVPlaybackStateInit
0
Initialized: The player object has just been created and is in its initial state.
TAVPlaybackStatePreparing
1
Loading / Preparing: The player is loading resources and preparing for playback.
TAVPlaybackStateReady
2
Ready: The player is ready to play or pause and can respond to control commands.
TAVPlaybackStateLoading
3
Buffering: During playback, buffering is needed due to network or other reasons.
TAVPlaybackStatePlaying
4
Playing: The player is playing media content normally.
TAVPlaybackStatePaused
5
Paused: The player is paused and can resume playback via a resume command.
TAVPlaybackStateFinished
6
Playback Finished: Media content playback is complete.
TAVPlaybackStateStopped
7
Playback Stopped: The player has been explicitly stopped and typically needs to be reloaded to play.
TAVPlaybackStateDestoryed
8
Player Destroyed: The player object has been released or destroyed.
TAVPlaybackStateFailed
9
Playback Failed: An error occurred during playback, preventing normal playback.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백