美狐美颜在金山美颜的基础上进行封装,所以需要导入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)