Then we get Error: Uncaught ReferenceError: Peer is not defined
Can you let us know what we need to do to fix this Error?
Notes:
1- Above pages to this Peer-to-Peer Video chat are the development pages, so the CSS stuff is not pretty, and room id is hard coded.
Please ignore that. The real public version will be much better looking. And pages (rooms) will be dynamically created for each member, etc.
2- We already offer our members free node.js based Text chat
so we are pretty solid and experienced when it comes to node.js stuff and live chat related stuff
Hey @WorldNews, you have set the defer attribute on the script loading peerjs, which means that it will only get loaded after the document – including your own script – got parsed. So just remove the deferral and it should work.
I did as you suggested and removed “defer” from JS files being loaded.
But it is still throwing the same Error!
Which you can see in the test dev page above, that is here: https://www.anoox.com/chat/video_chat_dev_wPeer.php