美狐美顏在金山美顏的基礎上進行封裝,所以需要導入GPUImage框架。一般金山庫已經提供。如果項目中沒有的話請參考官方cocoapods提供的[GPUImage](https://github.com/BradLarson/GPUImage/releases/tag/0.1.7),當前我們測試通過的版本是[0.1.7](https://github.com/BradLarson/GPUImage/releases/tag/0.1.7)。(Meihu Meiyan is encapsulated on the basis of Jinshan Meiyan, so it needs to import the gpuimage framework. General Jinshan Treasury has been provided. If not in the project, please refer to the gpuimage provided by the official cocoapods. At present, the version we tested is 0.1.7.)
將“KSYMHBeauty\_金山直播專用”文件夾下的文件導入到工程中,在直播頁面導入頭文件(Import the file under "ksymhbeauty\_; Jinshan" folder into the project, and import the header file on the live broadcast page:):
```
#import "MHBeautyOfKSYStream.h"
```
先保證初始化MHBeautyManager之后,再初始化MHBeautyOfKSYStream(Make sure to initialize mhbeautymanager before initializing mhbeautyofksystream):
```
MHBeautyOfKSYStream *mhbeauty = [[MHBeautyOfKSYStream alloc] initMHSDKWithManager:self.beautyManager];
```
調用金山SDK方法,在配置SDK相關參數的時候將mhbeauty傳入(Call Jinshan SDK method and pass mheauty in when configuring SDK related parameters):
```
[_kit setupFilter:mhbeauty];
```
(說明:\_kit**是**KSYGPUStreamerKit實例)
(Note: \_kitis an instance of ksygpustreamerkit)
- 美狐SDK接入文檔
- Meihu SDK Access Document
- (Untitled)
- 一、基礎描述(Basic description)
- 1. 最新特性 (Latest features)
- 2. 支持平臺 (Support platform)
- 二、集成步驟 (Integration steps)
- 3. 配置工程(Configuration Engineering)
- 4. 使用 MHUI (Use MHUI)
- 5. 騰訊直播 SDK/短視頻SDK (Tencent live SDK / short video SDK)
- 6. 金山直播SDK (Jinshan)
- 7. 七牛直播SDK (Qiniu Live)
- 8. 七牛短視頻SDK (Qiniu ShortVideo)
- 9. Movieous短視頻 (Movieous short Video)
- 10. 即構直播SDK (Zego live)
- 11. 即構實時音視頻SDK(Zego Real time audio and video)
- 12. 新版Zego(即構)實時音視頻(New Zego Real time audio and video)
- 13. 網易直播 (NetEase live)
- 14. 騰訊互動直播 (Tencent interactive live broadcast)
- 15. 騰訊實時音視頻(Tencent real-time audio and video)
- 16. 融云實時音視頻 (SealRTC)
- 17. 聲網視頻通話 (Agora video call)
- 18. 聲網直播 (Agora Live)
- 19. 阿里直播 (Ali Live)
- 20. 阿里音視頻 SDK美顏
- 三、對接說明 (Docking instructions)
- 四、常見問題(common problem)
- 2. 美顏無效果(Beauty has no effect)
- 3. 貼紙下載失敗(Sticker download failed)
- 4. 點擊無法出現美顏菜單頁(The beauty menu page cannot appear after clicking)
- 5. 英文版顯示中文(The beauty menu page cannot appear after clicking)
- 6. 語言切換功能(Language switching function)