tencent cloud

User Generated Short Video SDK

iOS

Download
Focus Mode
Font Size
Last updated: 2026-05-11 17:46:58
AI-Translated

Feature Overview

Through motion effect interfaces, you can add dynamic transition effects to short videos. This document provides motion effect management features, including adding, updating, and removing effects, with support for scaling modes and time parameters.

Related Interface Classes

Interface Class Name
Description
TAVEditor
SDK operation entry class.

Motion Effect Methods

Add Motion Effect

/// Set effect
/// - Parameters:
/// - path: Effect asset path
/// - timeRange: Time range for the effect
/// - return: Effect ID
- (int)addMotionEffect:(NSString *)path timeRange:(CMTimeRange)timeRange;

Adjust Motion Effect Playback Time

/// Update effect playback time
/// - Parameters:
/// - effectId: ID generated when creating the effect
/// - timeRange: Effect display time range
- (void)updateMotionEffect:(int)effectId playRange:(CMTimeRange)timeRange;

Remove Motion Effect

/// Remove effect
/// - Parameter effectId: ID generated when creating the effect
- (void)removeMotionEffect:(int)effectId;

/// Remove all effects
- (void)removeAllMotion;


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback