وبلاگ بلیان

WebRTC cookbook get to grips with advanced real-time communication applications and services on WebRTC with practical, hands-on recipes

معرفی کتاب «WebRTC cookbook get to grips with advanced real-time communication applications and services on WebRTC with practical, hands-on recipes» نوشتهٔ Andrii Sergiienko، منتشرشده توسط نشر Packt Publishing - ebooks Account در سال 2015. این کتاب در 5 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است.

**Get to grips with advanced real-time communication applications and services on WebRTC with practical, hands-on recipes** About This Book* Explore task-based recipes on integrating your WebRTC application with systems such as Asterisk and Freeswitch * Set up cutting-edge communicating networks by understanding the fundamentals of debugging, security, integration, attendant services, and more * Gain advanced knowledge of WebRTC with these incredibly effective recipes Who This Book Is ForIf you are a JavaScript developer with a basic knowledge of WebRTC and software development, but want to explore how to use it in more depth, this book is for you. What You Will Learn* Understand the concepts of WebRTC while setting up rich web applications * Create a signaling server using Java or Erlang * Secure your WebRTC application by configuring your own STUN/TURN server * Integrate with VoIP platforms such as Asterisk and FreeSWITCH and abstract the complexities of communications protocols * Get acquainted with advanced debugging and troubleshooting techniques * Process videos using HTML5 filters * Develop native mobile applications using WebRTC and integrate them with web services * Discover advanced WebRTC techniques and solutions In DetailUsing WebRTC, it is easy to develop in-browser applications and web services with extended multimedia features such as audio/video calls, VoIP, screen casting, peer-to-peer file transferring and more, without installing any third-party components/plugins on the client. In this book, you'll explore practical recipes covering the core aspects of application and service development with WebRTC. After a recap of the basics of developing rich media web applications and services, you will delve into core functionalities such as security and SSL, integration with other technologies such as VoIP and SIP, debugging clients and servers, working with filters, native applications for mobile platforms, and using third-party components. By the end of this book, you will be able set up advanced, real-time, communicating networks with a full understanding of core WebRTC features. WebRTC Cookbook 16 Credits 18 About the Author 20 About the Reviewers 22 www.PacktPub.com 24 Support files, eBooks, discount offers, and more 26 Why Subscribe? 27 Free Access for Packt account holders 28 Preface 29 What this book covers 31 What you need for this book 32 Who this book is for 34 Conventions 36 Reader feedback 38 Customer support 40 Downloading the example code 42 Downloading the color images of this book 43 Errata 44 Piracy 45 Questions 46 1. Peer Connections 47 Introduction 49 Building a signaling server in Erlang 51 Getting ready 53 How to do it... 54 How it works... 58 There's more... 59 See also 60 Building a signaling server in Java 61 Getting ready 63 How to do it... 64 How it works... 66 There's more... 67 See also 68 Detecting WebRTC functions supported by a browser 69 Getting ready 71 How to do it... 72 How it works... 74 There's more... 75 See also 76 Making and answering calls 77 Getting ready 79 How to do it... 80 Making a call 81 Answering a call 82 How it works... 84 There's more... 85 See also 86 Implementing a chat using data channels 87 Getting ready 89 How to do it... 90 Creating the main HTML page of the application 90 Creating the JavaScript helper library 91 How it works... 96 There's more... 97 See also 98 Implementing a chat using a signaling server 99 How to do it... 101 How it works... 102 There's more... 103 See also 104 Configuring and using STUN 105 Getting ready 107 How to do it... 108 How it works... 109 There's more... 110 See also 111 Configuring and using TURN 112 Getting ready 114 How to do it... 115 Installing the TURN server 115 Using TURN in WebRTC application 116 How it works... 118 There's more... 119 See also 120 2. Supporting Security 121 Introduction 123 Generating a self-signed certificate 124 Getting ready 126 How to do it... 127 How it works... 129 There's more... 130 See also 131 Configuring a TURN server with authentication 132 Getting ready 134 How to do it... 136 Implementing the client-side code 136 Implementing the server-side code 136 How it works... 138 There's more... 139 See also 140 Configuring a web server to work over HTTPS 141 Getting ready 143 How to do it... 144 Configuring Nginx 144 Configuring Apache 144 Configuring IIS 145 There's more... 147 See also 148 Configuring a WebSockets proxy on the web server 149 Getting ready 151 How to do it... 152 Configuring Nginx 152 Configuring Apache 152 Configuring IIS 153 How it works... 158 There's more... 159 See also 160 Configuring a firewall 161 Getting ready 163 How to do it... 164 Configuring a firewall on a server 164 Configuring a firewall on a client 164 See also 168 3. Integrating WebRTC 169 Introduction 171 Integrating WebRTC with Asterisk 172 Getting ready 174 How to do it... 175 Installing libSRTP 175 Installing Asterisk 175 How it works... 177 There's more... 178 See also 179 Integrating WebRTC with FreeSWITCH 180 Getting ready 182 How to do it... 183 Installing FreeSWITCH 183 Enabling WebRTC 184 Starting FreeSWITCH 184 How it works... 185 There's more... 186 See also 187 Making calls from a web page 188 Getting ready 190 How to do it... 191 Installing sipML5 191 How it works... 194 There's more... 195 See also 196 Integration of WebRTC with web cameras 197 Getting ready 199 How to do it... 200 Configuring the webcam 200 Installing WebRTC media server 200 Time for magic 202 How it works... 204 There's more... 206 4. Debugging a WebRTC Application 207 Introduction 209 Working with a WebRTC statistics API 210 Getting ready 212 How to do it... 213 Checking estimated bandwidth 216 Checking packet loss 217 How it works... 220 There's more... 221 See also 222 Debugging with Chrome 223 Getting ready 225 How to do it... 226 Using webrtc-internals 226 Using Chrome logging mechanism 234 How it works... 236 There's more... 237 See also 238 Debugging TURN 239 Getting ready 241 How to do it... 242 How it works... 244 There's more... 245 See also 246 Debugging using Wireshark 247 Getting ready 249 How to do it... 250 How it works... 253 There's more... 254 See also 255 5. Working with Filters 256 Introduction 258 Working with colors and grayscale 259 How to do it... 261 How it works... 263 Working with brightness 264 How to do it... 266 How it works... 268 Working with contrast 269 How to do it... 271 How it works... 273 Working with saturation 274 How to do it... 276 How it works... 278 Working with hue 279 How to do it... 281 How it works... 283 Using the sepia filter 284 How to do it... 286 How it works... 288 Using the opacity filter 289 How to do it... 291 How it works... 293 Inverting colors 294 How to do it... 296 How it works... 298 Implementing the blur effect 299 How to do it... 301 How it works... 303 Implementing the dropped shadow effect 304 How to do it... 306 How it works... 309 Combining filters 310 How to do it... 312 How it works... 314 Custom video processing 315 How to do it... 317 How it works... 319 6. Native Applications 320 Introduction 322 Building a customized WebRTC demo for iOS 323 Getting ready 325 How to do it... 326 There's more... 333 Building a demo project for a iOS simulator 333 See also 335 Compiling and running an original demo for iOS 336 Getting ready 338 How to do it... 339 Building a demo project for an iOS device 339 Building a demo project for an iOS simulator 339 There's more... 341 See also 342 Compiling and running a demo for Android 343 Getting ready 345 Preparing the system 345 Installing Oracle JDK 345 Getting the WebRTC source code 346 Installing Android Developer Tools 346 How to do it... 347 Running on the Android simulator 347 Fixing a bug with GLSurfaceView 351 Running on a physical Android device 352 There's more... 356 See also 357 Building an OpenWebRTC library 358 Getting ready 360 How to do it... 361 There's more... 362 7. Third-party Libraries 363 Introduction 365 Building a video conference using SimpleWebRTC 366 Getting ready 368 How to do it... 369 How it works... 371 There's more... 373 Creating an application using RTCMultiConnection 374 Getting ready 376 How to do it... 377 How it works... 380 There's more... 383 Developing a simple WebRTC chat using PeerJS 384 Getting ready 386 How to do it... 387 How it works... 389 There's more... 391 Making a simple video chat with rtc.io 392 Getting ready 394 How to do it... 395 How it works... 397 There's more... 398 Using OpenTok to create a WebRTC application 399 Getting ready 401 How to do it... 405 How it works... 407 There's more... 408 Creating a multiuser conference using WebRTCO 409 Getting ready 411 How to do it... 412 How it works... 416 There's more... 417 8. Advanced Functions 418 Introduction 420 Visualizing a microphone's sound level 421 Getting ready 423 How to do it... 424 How it works... 427 See also 428 Muting a microphone 429 Getting ready 431 How to do it... 432 How it works... 434 There's more... 435 See also 436 Pausing a video 437 Getting ready 439 How to do it... 440 How it works... 442 See also 443 Taking a screenshot 444 Getting ready 446 How to do it... 447 How it works... 448 See also 449 Streaming media 450 Getting ready 452 How to do it... 453 How it works... 462 See also 463 Index 464 Get to grips with advanced real-time communication applications and services on WebRTC with practical, hands-on recipes About This Book Explore task-based recipes on integrating your WebRTC application with systems such as Asterisk and Freeswitch Set up cutting-edge communicating networks by understanding the fundamentals of debugging, security, integration, attendant services, and more Gain advanced knowledge of WebRTC with these incredibly effective recipes Who This Book Is For If you are a JavaScript developer with a basic knowledge of WebRTC and software development, but want to explore how to use it in more depth, this book is for you. In Detail Using WebRTC, it is easy to develop in-browser applications and web services with extended multimedia features such as audio/video calls, VoIP, screen casting, peer-to-peer file transferring and more, without installing any third-party components/plugins on the client. In this book, you'll explore practical recipes covering the core aspects of application and service development with WebRTC. After a recap of the basics of developing rich media web applications and services, you will delve into core functionalities such as security and SSL, integration with other technologies such as VoIP and SIP, debugging clients and servers, working with filters, native applications for mobile platforms, and using third-party components. By the end of this book, you will be able set up advanced, real-time, communicating networks with a full understanding of core WebRTC features.

About This Book

  • Process large and complex datasets using next generation Hadoop
  • Install, configure, and administer MapReduce programs and learn what's new in MapReduce v2
  • More than 90 Hadoop MapReduce recipes presented in a simple and straightforward manner, with step-by-step instructions and real-world examples

Who This Book Is For

If you are a Big Data enthusiast and wish to use Hadoop v2 to solve your problems, then this book is for you. This book is for Java programmers with little to moderate knowledge of Hadoop MapReduce. This is also a one-stop reference for developers and system admins who want to quickly get up to speed with using Hadoop v2. It would be helpful to have a basic knowledge of software development using Java and a basic working knowledge of Linux.

دانلود کتاب WebRTC cookbook get to grips with advanced real-time communication applications and services on WebRTC with practical, hands-on recipes