Symptoms:
- I'm running my app in the Unity Editor. The app works correctly the first time I run it, but subsequent runs show an error. After restarting the Editor, the error disappears.
Cause:
RTCEngine instances have a life cycle. This error is returned when you do not destroy the instance when the app or the Editor closes.
Resolution:
To resolve the 'create engine failed' error, Call
IrtcEngine.Destroy()
when you close your app. For example:void OnApplicationQuit() { Debug.Log("OnApplicationQuit"); if (mRtcEngine != null) { mRtcEngine.LeaveChannel(); mRtcEngine.DisableVideoObserver(); IRtcEngine.Destroy(); } }
More Information:
The
Destroy()
API will be replaced by Dispose()
. Please check the release notes for more information.
Comments
0 comments
Please sign in to leave a comment.