tencent cloud

User Generated Short Video SDK

iOS

Download
フォーカスモード
フォントサイズ
最終更新日: 2026-05-11 17:46:58

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;


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック