Skip to content

Latest commit

 

History

History
 
 

Agora-Video-With-FaceUnity-iOS

Agora Video With Faceunity

其他语言版本: 简体中文

This open source demo project demonstrates how to implement 1to1 video chat with [Agora] (www.agora.io) video SDK and the [Faceunity] (http://www.faceunity.com) beauty SDK.

With this sample app you can:

Agora

  • Join / leave channel
  • Implement 1to1 video chat
  • Mute / unmute audio

Faceunity

  • face tracking, beauty, Animoji, props stickers, AR mask, face transfer , face recognition, music filter, background segmentation
  • Switch capture format
  • Switch camera

This project uses the video pre-processing functions provided by Faceunity such as video capture, beauty, and local rendering, and uses Agora's functions of voice collection, encoding, transmission, decoding, and remote rendering.

Faceunity beauty function please refer to. Faceunity Document

Agora function implementation please refer to Agora Document

Due to the need to use third-party capture when using beauty function, please refer to Customized Media Source API or Configuring the External Data API

Running the App

First, create a developer account at Agora.io, and obtain an App ID. Update "KeyCenter.m" with your App ID.

+ (NSString *)AppId {
     return @"Your App ID";
}

Next, download the Agora Video SDK from Agora.io SDK. Unzip the downloaded SDK package and copy the "libs/AgoraRtcEngineKit.framework" to the "AgoraWithFaceunity" folder.

Contact Faceunity to get the certificate file replace the "authpack.h" file in the "/AgoraWithFaceunity/Faceunity" folder of this project.

Finally, Open AgoraWithFaceunity.xcodeproj, connect your iPhone/iPad device, setup your development signing and run.

FAQ

  • Please do not use the raw data interface provided by Agora to integrate beauty features
  • Videosource internal is a strong reference, you must set nil when not in use, otherwise it will cause a circular reference
  • If you encounter a big head problem, please contact technical support

Developer Environment Requirements

  • XCode 8.0 +
  • Real devices (iPhone or iPad)
  • iOS simulator is NOT supported

Connect Us

License

The MIT License (MIT).