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 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약

iOS

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-04-01 17:14:09
If you want to use third-party beauty libraries to add video effects during recording and editing, you can implement this in the ​preprocessing callbacks for both recording and editing.

Callback for Pre-Processing for Shooting

/**
* Call back in the OpenGL thread, where captured images can be processed.
* @param texture Texture ID
* @param width Texture width
* @param height Texture height
* @return Texture returned to the SDK
* Note: The type of textures called back by the SDK is GL_TEXTURE_2D, which must also be the texture type returned by the API. This callback follows the calling of beauty filter APIs, and the texture format is GL_RGBA.
*/
- (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height;

/**
* Call back in the OpenGL thread. You can release OpenGL resources here.
*/
- (void)onTextureDestoryed;


Callback for Pre-Processing for Video Editing

/**
Call back in the OpenGL thread, where captured images can be processed.
@param textureId Texture ID
@param width Texture width
@param height Texture height
@param timestamp Texture timestamp (ms)
@return Texture returned to the SDK
Note: The type of textures called back by the SDK is GL_TEXTURE_2D, which must also be the texture type returned by the API. This callback follows the calling of beauty filter APIs, and the texture format is GL_RGBA.
Timestamp is the PTS of the current video frame and is measured in milliseconds. You can customize beauty filter effects based on your needs.
*/
- (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height timestamp:(UInt64)timestamp;

/**
* Call back in the OpenGL thread. You can release OpenGL resources here.
*/
- (void)onTextureDestoryed;



도움말 및 지원

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

피드백