akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.18k stars 7.95k forks source link

Has anybody implemented Agora.Io with ngx admin template? #2030

Open paologrimaldi opened 5 years ago

paologrimaldi commented 5 years ago

Issue type

I'm submitting a ... (check one with "x")

Issue description

Current behavior: I can easily create a demo working version of agora.io following this instructions https://medium.com/@Anderson7301/building-a-video-chat-app-with-agora-and-angular-6-858d72b6fa0d but for some reason I do not understand when I try it even with the starter kit template it does not work the websocket connection times out. Has anybody attempted this and has it worked out? Sorry for my dumb question but I cannot figure this one out.

Expected behavior: Agora Io working like it does in a new angular project. (both versions the same, same machine, starter kit used with no packages other than agora

Steps to reproduce:

download the starter kit install agora-rtc and follow the instructions on the link provided on any new component

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular 7 - 3.0.1

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->
yggg commented 5 years ago

Hi @paologrimaldi! It would be great if you provide some ready to run the example (repository or stackblitz).

websocket connection times out Not sure if it could be related to ngx-admin, since it is does nothing with web sockets. Make sure your backend service is running, try to connect from a clean angular app, etc.

paologrimaldi commented 5 years ago

Hi @yggg thank you for your reply. I have created the two versions of the Agora demo on this repository https://github.com/paologrimaldi/AgoraTroubleshootDemo

They both need an agora.io app ID which can be generated for free signing up at https://www.agora.io/en/

I have followed this simple instructions for the demo https://medium.com/@Anderson7301/building-a-video-chat-app-with-agora-and-angular-6-858d72b6fa0d

The angular version is basically just an ng new project followed by install of the package angular-agora-rtc after this I just added some code to the app.component to display the video window. The starter kit version is exactly the same steps I just added the video window on the dashboard component instead of the app component.

On the starter kit I cannot connect and I get an error _co.startCall is not a function but I havent been able to figure out which of the modules included in the starter kit or what configuration in the starter kit is interfering with the webrtc call.

Maybe somebody with previous experience with RTC or Agora can pitch in and give some insight.

AhmedHassan-M commented 4 years ago

I'm facing the same problem, can anybody figure out what is going wrong here!