The UGSV demo app mainly integrates UGCKit
as the core feature library, which is used for playback and shooting. For the integration method, see SDK Integration (Xcode).
The UGSV demo app's beauty filter feature consists of basic beauty filters and effects from Tencent Effect. You can implement basic beauty filters by integrating BeautySettingkit
as instructed in Special Effects (iOS), and the code is in the BeautySettingKit
directory. You can implement Tencent Effect by integrating xmagickit
as instructed in SDK Integration Guide (iOS), and the code is in the xmagickit
directory.
The UGSV demo app has seven modules:
XiaoshiPinApp
directory.XiaoShiPin/AppViewControllers/Account
and XiaoShiPin/AppViewControllers/AccountInfo
. The former is responsible for login, and the latter is responsible for profile processing.XiaoShiPin/Model
.XiaoShiPin/AppViewControllers/mainList
): Data-level definition and pickling/unpickling of the video listThe playback module offers features including video preloading, playback, caching, sharing, etc.
You can find the code in /XiaoShiPin/AppViewControllers/VideoPlayer
, which includes the UI logic and business logic for playback.
The shooting module offers features including segment-based shooting and deletion, multi-resolution shooting, changing shooting speed, etc.
You can find the logic for shooting in UGCKit/Source/Record
.
The video editing module offers features including video clipping, background music, filters, special effects, animated and static stickers, etc.
You can find the logic for video editing in UGCKit/Source/Edit
.
The publishing module offers the video publishing feature.
You can find the logic for publishing in XiaoShiPin/AppViewController/Publish
.
XiaoShiPin/AppViewController/AccountInfo
.This module is the advanced encapsulation (with the UI) of the UGSV SDK to facilitate quick integration.
Directory description:
File/Directory | Description |
---|---|
Source/Common | The custom view module |
Source/Edit | The video editing module |
Source/MediaPicker | The media selection module |
Source/Model | The media model module |
Source/Music | The music module |
Source/Record | The video shooting module |
Source/Report | The data reporting module |
Source/Theme | The resource theme module |
Source/VideoCut | The video clipping module |
This module encapsulates Tencent Effect so that it can quickly integrated.
File/Directory | Description |
---|---|
BeautyRes | Image resources |
bundle | Beauty filter materials |
Download | The download module |
View | The beauty filter panel and data |
This module is the basic beauty filter module of UGSV. To use basic beauty filters, you can use this module for quick integration.
File/Directory | Description |
---|---|
Filter | The filter module |
Interfaces | Beauty filter APIs |
Model | Beauty filter data models |
View | The beauty filter panel UI |
Was this page helpful?