tencent cloud

User Generated Short Video SDK

뉴스 및 공지사항
Release Notes
The “startPlay” API of the UGSV SDK Renamed
제품소개
Overview
Features
Use Cases
Concepts
구매 가이드
Pricing Overview
Refund Policy
라이선스 가이드
Adding and Renewing a License
Configuring and Viewing a License
SDK 다운로드
SDK Download
Release Notes (App)
UI 통합 솔루션 포함
UGSV Demo App
Source Code Description (iOS)
Source Code Description (Android)
UI 통합 솔루션 없음
SDK Integration
Capturing and Shoot
Preview, Clipping, and Splicing
Upload and Playback
Tencent Effect SDK
Advanced Features and Special Effects
API 문서
Editing
Shooting
기술적 지원
Error Codes
Feature FAQs
일반적인 문제
Upload
Android Compilation
Android
iOS
License
UGSV 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약

Android

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-04-01 17:14:09
The image editing feature is added starting from SDK 4.9. You can select a desired image to add effects such as transition animation, background music, and stickers.The API functions are as follows:
/*
* bitmapList: list of transition images, which must contain at least three images (note: we recommend you compress the images to 720p or lower (as shown in the demo); otherwise, the memory usage may be too high, causing editing exceptions).
* fps: frame rate of the video generated from the transition images in fps. Value range: 15–30.
* Returned values:
* 0: set successfully
* -1: failed to set. Please check whether the image list exists
*/
public int setPictureList(List<Bitmap> bitmapList, int fps);

/*
* type: transition type. For more information, please see `TXVideoEditConstants`
* Returned values:
* duration: transition video duration (note: the duration for the same image list may vary by transition animation. You can get the transition image duration here)
*/
public long setPictureTransition(int type)

/**
* Transition type for image to video conversion
*/
public static final int TX_TRANSITION_TYPE_LEFT_RIGHT_SLIPPING = 1;
public static final int TX_TRANSITION_TYPE_UP_DOWN_SLIPPING = 2;
public static final int TX_TRANSITION_TYPE_ROTATIONAL_SCALING = 3;
public static final int TX_TRANSITION_TYPE_ENLARGE = 4;
public static final int TX_TRANSITION_TYPE_NARROW = 5;
public static final int TX_TRANSITION_TYPE_FADEIN_FADEOUT = 6;
Here, the setPictureList API is used to set the image list, which must contain at least three images. If too many images are set, the image size should be appropriate to avoid editing exceptions due to high memory usage.
The setPictureTransition API is used to set the transition effect. Currently, six effects are available, and their durations may vary. You can get the transition duration through the returned value here.
Pay attention to the API call sequence: call setPictureList first and then call setPictureTransition.
Image editing currently does not support loop, reverse, and fast/slow motions, but supports other video editing features. The call method is the same as that of video editing.

도움말 및 지원

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

피드백