tencent cloud

DocumentaçãoUser Generated Short Video SDK

iOS

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-05-11 17:46:58
Traduzido por IA

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;


Ajuda e Suporte

Esta página foi útil?

comentários