DllNotFoundException: agoraSdkCWrapper
//On pressing join button this shows up.
DllNotFoundException: agoraSdkCWrapper agora_gaming_rtc.IRtcEngine..ctor (System.String appId) (at Assets/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:340) agora_gaming_rtc.IRtcEngine.GetEngine (System.String appId) (at Assets/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:1237) agora_gaming_rtc.IRtcEngine.getEngine (System.String appId) (at Assets/Scripts/AgoraGamingSDK/AgoraGamingRtcEngine.cs:1245) TestHelloUnityVideo.loadEngine () (at Assets/TestHelloUnityVideo.cs:30) TestHome.onJoinButtonClicked () (at Assets/TestHome.cs:43) TestHome.onButtonClicked () (at Assets/TestHome.cs:64) UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:166) UnityEngine.Events.UnityEvent.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_0.cs:58) UnityEngine.UI.Button.Press () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:36) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:45) UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50) UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261) UnityEngine.EventSystems.EventSystem:Update()
//clicking once again it starts hello scene but on phone it crashes on first click
Have you put the sdk plugin into the demo ? @kkarannn

Hii I have done it like this
but still getting error @zhangtao1104 Thanks in advance
You need to build the project and run the demo in android phone or iphone.
this will not work in Edit even though I have attached the WEBCAM?
And how do I play the video on Raw Image or on Image instead of the cube?
Thanks.
Yes , because you do not put the win plugin into the demo. If you want to get the win plugin ,you can contact our customer support. This is our Official website. https://www.agora.io/cn/
You can read the source code in VideoSurface.cs.The only thing you need to do is attach the Texture2D to the gameObject which you want to render the video.
You can read the source code in VideoSurface.cs.The only thing you need to do is attach the Texture2D to the gameObject which you want to render the video.
Thanks man!!!
Yes, because you do not put the win plugin into the demo. If you want to get the win plugin ,you can contact our customer support. This is our Official website. https://www.agora.io/cn/
Okay Thanks!!
It is all right.
@zhangtao1104
This is not helpful !!
It is not working in mobile phone!
Executed it in phone still not able to see the video !!!!
@vinayak-vc did the solution work ?? given by @zhangtao1104
@vinayak-vc i don't see your comment that it is solved.
Ok, please wait a minute, I will help you ,it will work well.
@GreenArrowRepo
https://docs.agora.io/en/Interactive%20Gaming/game_unity_android_video?platform=Unity_(Android) Please run the demo according to the quickStart guide. @GreenArrowRepo
@zhangtao1104 I have agoraSdkCWrapper from the sdk plugin from assetstore. Still getting DllNotFoundException: agoraSdkCWrapper error on PC and video not working on mobile.
Where do i have to place it in the project?
Do you have x86 and x86_64 plugin in your project?
This is for windows, Please confirm it.
You can integrate according to readme's instructions, which are explained in great detail
Got it working!! Thanks. How can I use sharescreen feature from agora to share my screen instead of camera??
You can call setExternalVideoSource first. It allows you to capture your own video frames and stop the SDK's camera capture.
Then you need to call pushExternalVideoFrame every video frame to push your own video frame to agora sdk.
You can integrate this according to our offical documents,it will help you a lot.
https://docs-preview.agoralab.co/en/Interactive%20Gaming/game_unity?platform=Unity&versionId=81465890-f18b-11e9-8bb5-37fc243d5a73
@zhangtao1104 Hello, Thanks for the help.
I was able to solve the issue.
@zhangtao1104
I have set video profile to 'command mode' and client role as 'broadcaster'. Out of all the users who are in video chat one user will broadcast and other will see.
What i want to do is that the broadcaster and the audience should be able to draw on screen using a color pencil and all should be able to see in real time.
Is is possible in agora unity sdk ? Check this video for more clarity. P.S : We are not looking for AR functionality, we are only looking for drawing broadcast to all users using agora.
Please revert when you see this.
For agora, i think this question is that wheather agora unity video sdk can transfer the data stream, right? @GreenArrowRepo
Yes @zhangtao1104 correct.
Yes, agora video sdk can transfer data stream, you can see the api named createDataStream and sendStreamMessage.
@GreenArrowRepo