Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException: agoraSdkCWrapper #6

Open
kkarannn opened this issue Mar 27, 2019 · 40 comments
Open

DllNotFoundException: agoraSdkCWrapper #6

kkarannn opened this issue Mar 27, 2019 · 40 comments

Comments

@kkarannn
Copy link

kkarannn commented Mar 27, 2019

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

@zhangtao1104
Copy link
Collaborator

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

@vinayak-vc
Copy link

image

Hii I have done it like this

but still getting error @zhangtao1104
Thanks in advance

@zhangtao1104
Copy link
Collaborator

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

@vinayak-vc
Copy link

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

@vinayak-vc
Copy link

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

Thanks.

@zhangtao1104
Copy link
Collaborator

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
Copy link
Collaborator

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.

@vinayak-vc
Copy link

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
Copy link

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

@zhangtao1104
Copy link
Collaborator

It is all right.

@GreenArrowRepo
Copy link

GreenArrowRepo commented Oct 15, 2019

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

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

@GreenArrowRepo
Copy link

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

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

@zhangtao1104
Copy link
Collaborator

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

@zhangtao1104
Copy link
Collaborator

@GreenArrowRepo

@zhangtao1104
Copy link
Collaborator

@kkarannn
Copy link
Author

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

@zhangtao1104
Copy link
Collaborator

WeChata567de2c5ac4bbaa699b604ae20fec86

WeChat39b56c6aa024b668e6be25c3e72a11cf

@zhangtao1104
Copy link
Collaborator

Do you have x86 and x86_64 plugin in your project?

This is for windows, Please confirm it.

@zhangtao1104
Copy link
Collaborator

WeChatefa07a477e5f69dc1f6e24200c550e98

@zhangtao1104
Copy link
Collaborator

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

@kkarannn
Copy link
Author

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

@zhangtao1104
Copy link
Collaborator

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
Copy link
Collaborator

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

@GreenArrowRepo
Copy link

@zhangtao1104 Hello,
Thanks for the help.

I was able to solve the issue.

@GreenArrowRepo
Copy link

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

@zhangtao1104
Copy link
Collaborator

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

@GreenArrowRepo
Copy link

Yes @zhangtao1104 correct.

@zhangtao1104
Copy link
Collaborator

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

@zhangtao1104
Copy link
Collaborator

@GreenArrowRepo

@GreenArrowRepo
Copy link

Ok Thanks @zhangtao1104 i will look into that !!!

@GreenArrowRepo
Copy link

Hi @zhangtao1104 i could not find the createDataStream api in unity API

@zhangtao1104
Copy link
Collaborator

The api named CreateDataStream , SendStreamMessage.Please find again,there should be these apis. @GreenArrowRepo

@kkarannn
Copy link
Author

kkarannn commented Nov 7, 2019

I've got video calling working on android on a custom video plane with videosurface.cs on it.
But can't figure it out on iOS. I can only see device front cam video on both the devices..
I am not allowing a new gameObject with uid name to be created..

Please Help me figure out how to enable video connection between iOS devices.

AgoraHeriarchy
AgoraCode

@kkarannn
Copy link
Author

kkarannn commented Nov 7, 2019

onUserJoined is not called when another user joins..

@LuizPelegrini
Copy link

onUserJoined is not called when another user joins..

I can't even get the callback OnJoinChannelSuccess called. It is so frustrating...

@zhangtao1104
Copy link
Collaborator

zhangtao1104 commented Sep 11, 2020 via email

@LuizPelegrini
Copy link

@zhangtao1104 I managed to figure it out, for some reason the first appId copied from Agora dashboard was not working. I had to create a new project with a new AppId and use the new one. Now I can play the demo scene with no issues.

thank you!

@zhangtao1104
Copy link
Collaborator

zhangtao1104 commented Sep 11, 2020 via email

@LuizPelegrini
Copy link

Thank you for the clarification @zhangtao1104 I'll keep that in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants