GithubHelp home page GithubHelp logo

bacchuc / zego-express-example-faceunity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zegoim/zego-express-example-faceunity

0.0 1.0 0.0 43.22 MB

Zego Express Example FaceUnity Demo (Android/iOS)

Java 55.19% Objective-C 40.92% C 3.76% Shell 0.12%

zego-express-example-faceunity's Introduction

Zego Express Example FaceUnity (Android/iOS)

English | 中文

Zego Express Example FaceUnity Demo (Android/iOS)

Prepare the environment

Please ensure that the development environment meets the following technical requirements:

Android

  • Android Studio 2.1 or higher
  • Android SDK Packages: Android SDK 25, Android SDK Build-Tools 25.0.2, Android SDK Platform-Tools 25..
  • An Android Device (or emulator) running on Android 4.0.3 or higher version with a camera and microphone (a real device is recommended).
  • The Android device and your computer are connected to the Internet.

iOS

  • Xcode 6.0 or higher
  • iOS devices or simulators with iOS version no less than 8.0 and audio and video support (the real machine is recommended).
  • iOS device already connected to Internet

Download SDK

Android

The SDK libZegoExpressEngine.so and ZegoExpressEngine.jar required to run the Demo project is missing from this Repository, and needs to be downloaded and placed in the Libs folder of the Demo project.

https://storage.zego.im/express/video/android/zego-express-video-android.zip

finally, the structure under the android/app/libs directory should be as follows:

.
├── README.md
├── README_zh.md
├── ios
└── android
    └── app
        └── libs
            ├── ZegoExpressEngine.jar
            ├── arm64-v8a
            │   └── libZegoExpressEngine.so
            ├── armeabi-v7a
            │   └── libZegoExpressEngine.so
            └── x86
                └── libZegoExpressEngine.so

iOS

The SDK ZegoExpressEngine.xcframework required to run the Demo project is missing from this Repository, and needs to be downloaded and placed in the Libs folder of the Demo project

You can use Terminal to run the DownloadSDK.sh script in ./ios directory, it will automatically download the latest SDK and move it to the corresponding directory.

Or, manually download the SDK from the URL below, unzip it and put the ZegoExpressEngine.xcframework under Libs

https://storage.zego.im/express/video/apple/zego-express-video-apple.zip

.
├── README.md
├── README_zh.md
├── android
└── ios
    ├── Libs
    │   ├── FaceUnity
    │   └── ZegoExpressEngine.xcframework
    ├── ZegoExpressExample-FaceUnity-iOS
    └── ZegoExpressExample-FaceUnity-iOS.xcodeproj

Running the sample code

Obtain Your ZEGO AppID and AppSign

To build and run this sample app, you will need a ZEGO AppID and a corresponding AppSign for the app to access the ZEGO server. Please refer to the ZEGO Admin Console User Manual | _blank for the detailed instructions on how to obtain this information.

Obtain Your FaceUnity authpack

The authpack in the project is bound to BundleID, you need to contact FaceUnity to obtain authpack and replace.

Android

  1. Modify the source file GetAppIdConfig.java in the directory android/app/src/main/java/im/zego/expressample/faceu/demo/ to assign values to the variables appID and appSign.

    Please note that you need to append a letter L to the AppID value you get from the ZEGO Admin Console when assigning the value to the variable appID in the program.

  2. Replace your authpack.java obtained from FaceUnity to the path android/app/src/main/java/im/zego/expressample/faceu/demo/faceunity/authpack.java.

iOS

  1. Modify the source file ZGKeyCenter.m under the directory ios/ZegoExpressExample-FaceUnity-iOS/Helper/ to fill in the correct AppID and AppSign.

  2. Replace your authpack.h obtained from FaceUnity to the path ios/Libs/FaceUnity/authpack.h.

zego-express-example-faceunity's People

Contributors

johnsoncys avatar mynamecc avatar patrick-fu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.