Video-Call-for-Mobile-Gaming icon indicating copy to clipboard operation
Video-Call-for-Mobile-Gaming copied to clipboard

DllNotFoundException: agoraSdkCWrapper

Open kkarannn opened this issue 6 years ago • 40 comments

//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

kkarannn avatar Mar 27 '19 09:03 kkarannn

Have you put the sdk plugin into the demo ? @kkarannn

zhangtao1104 avatar Mar 29 '19 09:03 zhangtao1104

image

Hii I have done it like this

but still getting error @zhangtao1104 Thanks in advance

vinayak-vc avatar Jun 18 '19 07:06 vinayak-vc

You need to build the project and run the demo in android phone or iphone.

zhangtao1104 avatar Jun 18 '19 08:06 zhangtao1104

this will not work in Edit even though I have attached the WEBCAM?

vinayak-vc avatar Jun 18 '19 09:06 vinayak-vc

And how do I play the video on Raw Image or on Image instead of the cube?

Thanks.

vinayak-vc avatar Jun 18 '19 09:06 vinayak-vc

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/

zhangtao1104 avatar Jun 18 '19 09:06 zhangtao1104

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.

zhangtao1104 avatar Jun 18 '19 09:06 zhangtao1104

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!!!

vinayak-vc avatar Jun 18 '19 09:06 vinayak-vc

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!!

vinayak-vc avatar Jun 18 '19 09:06 vinayak-vc

It is all right.

zhangtao1104 avatar Jun 18 '19 09:06 zhangtao1104

@zhangtao1104
This is not helpful !! It is not working in mobile phone!

Executed it in phone still not able to see the video !!!!

GreenArrowRepo avatar Oct 15 '19 08:10 GreenArrowRepo

@vinayak-vc did the solution work ?? given by @zhangtao1104

@vinayak-vc i don't see your comment that it is solved.

GreenArrowRepo avatar Oct 15 '19 08:10 GreenArrowRepo

Ok, please wait a minute, I will help you ,it will work well.

zhangtao1104 avatar Oct 15 '19 08:10 zhangtao1104

@GreenArrowRepo

zhangtao1104 avatar Oct 15 '19 08:10 zhangtao1104

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 avatar Oct 15 '19 09:10 zhangtao1104

@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?

kkarannn avatar Oct 25 '19 10:10 kkarannn

WeChata567de2c5ac4bbaa699b604ae20fec86 WeChat39b56c6aa024b668e6be25c3e72a11cf

zhangtao1104 avatar Oct 25 '19 10:10 zhangtao1104

Do you have x86 and x86_64 plugin in your project?

This is for windows, Please confirm it.

zhangtao1104 avatar Oct 25 '19 10:10 zhangtao1104

WeChatefa07a477e5f69dc1f6e24200c550e98

zhangtao1104 avatar Oct 25 '19 10:10 zhangtao1104

You can integrate according to readme's instructions, which are explained in great detail

zhangtao1104 avatar Oct 25 '19 10:10 zhangtao1104

Got it working!! Thanks. How can I use sharescreen feature from agora to share my screen instead of camera??

kkarannn avatar Oct 25 '19 12:10 kkarannn

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.

zhangtao1104 avatar Oct 25 '19 12:10 zhangtao1104

You can integrate this according to our offical documents,it will help you a lot.

zhangtao1104 avatar Oct 25 '19 12:10 zhangtao1104

https://docs-preview.agoralab.co/en/Interactive%20Gaming/game_unity?platform=Unity&versionId=81465890-f18b-11e9-8bb5-37fc243d5a73

zhangtao1104 avatar Oct 25 '19 12:10 zhangtao1104

@zhangtao1104 Hello, Thanks for the help.

I was able to solve the issue.

GreenArrowRepo avatar Oct 27 '19 13:10 GreenArrowRepo

@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.

GreenArrowRepo avatar Oct 27 '19 14:10 GreenArrowRepo

For agora, i think this question is that wheather agora unity video sdk can transfer the data stream, right? @GreenArrowRepo

zhangtao1104 avatar Oct 28 '19 03:10 zhangtao1104

Yes @zhangtao1104 correct.

GreenArrowRepo avatar Oct 28 '19 08:10 GreenArrowRepo

Yes, agora video sdk can transfer data stream, you can see the api named createDataStream and sendStreamMessage.

zhangtao1104 avatar Oct 28 '19 08:10 zhangtao1104

@GreenArrowRepo

zhangtao1104 avatar Oct 28 '19 08:10 zhangtao1104