AgoraService not initialize _agoraService object , on the next line _agoraService.JoinChannelSuccess it gives exception object reference not set to an instance of an object because AgoraService.Current not initialize the object it remains null
public void Init()
{
_isEnded = false;
if (_agoraService == null)
{
_agoraService = AgoraService.Current;
_agoraService.JoinChannelSuccess += (uid) => { };
_agoraService.OnDisconn

ected += OnDisconnected;
_agoraService.OnNewStream += OnNewStream;
_agoraService.StartSession(Room, Consts.AgoraAPI, Consts.Token, webSdkInteroperability: true);
}
}
AgoraService not initialize _agoraService object , on the next line _agoraService.JoinChannelSuccess it gives exception object reference not set to an instance of an object because AgoraService.Current not initialize the object it remains null
public void Init()

{
_isEnded = false;
if (_agoraService == null)
{
_agoraService = AgoraService.Current;
_agoraService.JoinChannelSuccess += (uid) => { };
_agoraService.OnDisconn
ected += OnDisconnected;
_agoraService.OnNewStream += OnNewStream;
_agoraService.StartSession(Room, Consts.AgoraAPI, Consts.Token, webSdkInteroperability: true);
}
}