Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Agora Engine Create Engine Failed

Discussion in 'Editor & General Support' started by AcKeskin, May 12, 2021.

  1. AcKeskin

    AcKeskin

    Joined:
    Oct 8, 2020
    Posts:
    26
    Code (CSharp):
    1.  private IRtcEngine(string appId)
    2.         {
    3.             InitGameObject();
    4.             InitEngineCallback();
    5.             int initSuccess = IRtcEngineNative.createEngine(appId);
    6.             if (initSuccess != 0) {
    7.                -> Debug.LogError("Create engine failed, error code: " + initSuccess);
    8.             }
    Create engine failed, error code: -7 UnityEngine.Debug:LogError(Object) agora_gaming_rtc.IRtcEngine:.ctor(String) (at Assets/AgoraEngine/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:210) agora_gaming_rtc.IRtcEngine:GetEngine(String) (at Assets/AgoraEngine/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:3537) PlayerViewControllerBase:LoadEngine(String) (at Assets/scripts/PlayerViewControllerBase.cs:139) TechnicianConnectHandler:HandleSceneButtonClick() (at Assets/scripts/TechnicianConnectHandler.cs:132) UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2020.1.6f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:376)

    We are creating a AR/VR app. My friend has the VR and tries to share his screen, and then I will join his stream and see his screen. But when we try to connect it says Agora Engine Create Engine Failed Error Code: -7.
    It says this on the line that starts with ->
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,769
    I don't know what any of that is about... you might have better luck asking in the VR / AR / XR group here on these boards. There might be more folks with actual experience with that Agora thingy.

    Mmm... time to go get me some Agora Churrascaria meat! :)
     
  3. ChadrickEvans

    ChadrickEvans

    Joined:
    Mar 14, 2015
    Posts:
    46
    Did you ever figure this out?
     
  4. rcsw-devel

    rcsw-devel

    Joined:
    Feb 10, 2014
    Posts:
    1
    -7 error is usually caused by unreleased resources from the Agora engine. Make sure you clean up before ending the App. The SDK demo shows the how. In regards to the use case, Agora DE Hermes created this prefab to make the VR sharing easy. He got a blog covering a tutorial on Vive Focus but this prefab should be universal to most Unity applications.
     
  5. lasedinos9

    lasedinos9

    Joined:
    Feb 14, 2022
    Posts:
    3
    You're trying to do screen share on your project I'm also finding any solution regarding screen share on how to do screen share using agora. After searching for solutions, I found an In-app Communication Plugin for Unity 3D in Unity Asset Store where they've included screen share feature. Messenger 23 Pro is based on Agora video SDK for Unity which supports.

    • Instant text message

    • Audio call

    • Video call

    • Screen share
    The free version of this asset is available on GitHub. Find the free version here

    https://github.com/Studio-23-xyz/Messenger-23

    You can also buy the Pro version of messenger 23 from Unity Asset Store.

    https://assetstore.unity.com/packages/templates/systems/messenger-23-pro-edition-210444



    Hope it helps you!
     
    shahidulalam likes this.