ajb413 / chat-engine-webrtc

ChatEngine Plugin for WebRTC Video Chat in a Chat App. Demo:
https://ajb413.github.io/chat-engine-webrtc/example/
MIT License
12 stars 4 forks source link

WebRTC plugin is not working #6

Closed ashbshaw closed 5 years ago

ashbshaw commented 5 years ago

I followed all instructions listed on this site: https://www.pubnub.com/blog/webrtc-video-chat-engine-plugin-video-calling-chat/

I am receiving the following message and have narrowed my issues down to the WebRTC plugin. Is there a known issue, or do you have any suggestions?

Capture

image

ajb413 commented 5 years ago

I tried the example app and I replaced the reference in the HTML file from

<script src="../dist/chat-engine-webrtc.js"></script>

to

<script src="https://cdn.jsdelivr.net/npm/chat-engine-webrtc@latest/dist/chat-engine-webrtc.js"></script>

and it appears to be working normally in Chrome. Can you push your code project to your GitHub and send me a link? That way I can better and diagnose your errors.

ashbshaw commented 5 years ago

Will do shortly! Thanks so much. This is a school project, and I am in panic mode (hah).

ashbshaw commented 5 years ago

https://github.com/cait-sidener/Project-Two

The files in question are video.html and video.js within the "public" folder. Bear with me, I am new at this. I used your example app to try and get it to work, as you will see.

ajb413 commented 5 years ago

Looks like your PubNub app is not a ChatEngine app. Log in to PubNub in the box on this page and click the "Deploy ChatEngine" button. This will make a new keyset on your PubNub account, enable the right features, and also deploy a PubNub Function that acts as the back end server for your Chat app. This is all free by the way. Insert those new Pub/Sub keys into your application source code. That should fix some of your errors. Let me know if there are more errors.

ashbshaw commented 5 years ago

Thank you! I will give that a try. Much appreciated.

ashbshaw commented 5 years ago

Well, that fixed the errors. Dumb mistake. Thanks for your help!