I am working on a project which allows two users on the Internet to have a video call with one other. I am using WebRTC for that.
While doing the research, I came across certain articles. One thing I don't understand in these articles is that why do we even need an 'application server'?
The first link - https://bloggeek.me/webrtc-server/ - In this post, they've explained the different WebRTC servers. I understand that the 'signaling server' is required to connect the two clients, but why do we require an 'application server' to deploy our HTML, CSS and JavaScript files?
Can't we just open the index.html on our browser(without the server) and the script tag in it which refers to the index.js file - handle the signaling server and run on the browser?
Even in this post: https://www.tutorialspoint.com/webrtc/webrtc_architecture.htm - they've mentioned that "Be careful, because WebRTC works only on the server side. If you simply open this page with the browser it won't work. You need to host these files on the Apache or Node servers, or which one you prefer."
Why do we need a server to render our HTML, css, and javascript files? Why can't the video elements be rendered through the connection established through WebRTC APIs and the signaling server running on the browser (in index.js) ?