Customizable/Plug and Play - Video Chat Application
Using this code you can add the functionality of peer-to-peer video chat to your application.
When you download the code, you will get a fully functional video chat application right of the bat without any customizations. The MQTT broker used in this application is a test broker. It should not pose a problem even in the production but to be one the safe side you can get an MQTT broker for cheap and use it. The code works best for Mosquito MQTT broker.
If you don’t want the MQTT system for messaging then you can easily integrate you own in this code very easily.
If you don’t understand MQTT, you don’t have to worry about it. It is already abstracted out in such a way that if you don’t want to bother about it then you won’t have to look at it.
Video Demo : https://www.youtube.com/watch?v=HSNwaB2WP9o&feature=youtu.be
How does it work?
In order to get the application working just upload it to any server (be it localhost) and open two clients (tabs with index.html). For each client to connect to the other the unique randomly generated ID (my ID) are shared between the two client and that’s it. The video chat will start working.
If you don’t have time or the required expertise then don’t worry just copy and paste the code to the desired location and your work is done.
How to customize?
The code is written in a way to facilitate your customization process. Your most favorite place for customization is the js/messaging.js file. The comments there will guide you regarding every function and their customization.
This code is compatible on all widely used and popular browsers like Chrome, Safari, Firefox and Opera. Since, the code it written in simple JS, HTML and CSS you can integrate it with any framework or system you are using. The functions in this code are self explanatory.
Always happy and welcoming to support customers. Feel free to contact me any time.