Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • WebRTC Blueprints
  • Toc
  • feedback
WebRTC Blueprints

WebRTC Blueprints

By : Andrii Sergiienko
4.2 (9)
close
WebRTC Blueprints

WebRTC Blueprints

4.2 (9)
By: Andrii Sergiienko

Overview of this book

Table of Contents (13 chapters)
close
WebRTC Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Developing a signaling server


There are still no major changes in the signaling server that we developed in the first chapter, so we can use it here for the new application.

The only change that we need to implement in the application that was developed in Chapter 1, Developing a WebRTC Application, is related to HTTPS and the proxy that we just discussed. We need to change the path where the server will accept requests from clients.

Edit the www/apps/rtc_server/src/rtcserver_app.erl file.

Find the following piece of code there:

Dispatch = cowboy_router:compile([
                                {'_',[
                                     {"/", handler_websocket,[]}
                                    ]}
                                ]),
{ok, _} = cowboy:start_http(websocket, 100, [{port, 30000}], [

Change the preceding code to the following one:

Dispatch = cowboy_router:compile([
                                {'_',[
                                {"/signaling", handler_websocket,[]}
    ...
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete