OnUserJoined is not called on build #254
Unanswered
AnderSystems
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to deploy Agora here, but it seems void IRtcEngine.OnUserJoined is not called in build, only in Editor
Build console:

Editor Console:

My main code:
`using agora_gaming_rtc;
using agora_utilities;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Screenshare_Manager : MonoBehaviour
{
public static AgoraWebGLEventHandler eventHandler;
public static uint uID;
public static string currentChannel = "";
public static bool isConnectedOnChannel { get { return currentChannel != ""; } }
#if UNITY_EDITOR
m_rtcEngine.StartScreenCaptureByDisplayId(0, default, default);
#else
m_rtcEngine.StartScreenCaptureForWeb(withAudio);
#endif
}
public void StopScreenShare()
{
m_rtcEngine.StopScreenCapture();
}
}
public interface iAgora_screenShare
{
public void Agora_OnError(int error);
public void Agora_OnScreenShareCancel(uint uID);
public void Agora_OnScreenShareStop(uint uID);
public void Agora_OnScreenShareStart(uint uID);
public void Agora_OnLeaveChannel(RtcStats stats);
public void Agora_OnJoinChannelSuccess(uint uID);
public void Agora_OnUserLeave(USER_OFFLINE_REASON reason);
public void Agora_OnUserJoined(uint uid);
}`
Beta Was this translation helpful? Give feedback.
All reactions