Preparing the environment
The whole structure of our application will be the same as in the previous chapter.
We need to create a folder for the new application, for example, filesharing_app
. Again, create a subfolder for the HTML/JavaScript
part, for example, filesharing_app/www
.
We still need a signaling server, and in this chapter we won't introduce any new functionality on the server side. So, you can take the signaling server from the previous chapter. It will work fine for the new application that we're going to develop. You can just copy the signaling server from my_rtc_project/apps/rtcserver
and paste it to filesharing_app/apps/
.
We will also need the WebRTC API JavaScript adapter that we developed in the previous chapter. The adapter library can be used from the previous chapter with no change, so we need not pay much attention to it in this chapter.
So, take the signaling server application and the myrtcadapter.js
library from the application we developed in the previous chapter.