5 Interesting Trends in WebRTC from Kranky Geek 2019
Tags: webrtc, dolby
Published: 2020-02-27 21:51:49

---
title: 5 Interesting Trends in WebRTC from Kranky Geek 2019
published: true
description: Observations from attending Kranky Geek WebRTC conference
tags: webrtc, dolby
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/dlp5s8nn5cnvc0qesa7d.png
---

The annual Kranky Geek RTC Conference was held a few months ago in San Francisco.  It was an opportunity to listen to more than a dozen speakers from companies including Apple, AWS, Dolby, Google, Microsoft, Mozilla, and more discuss perspectives on solutions, emerging trends, and the complexity of delivering real-time audio & video on the web.

While the content isn’t aimed at those new to WebRTC to learn the basics, a lot of the topics are still interesting and engaging for all skill levels to get context into the technology and its application.  Below is my list of some trends I observed while at the event.

# (1) WebRTC Reaching Version 1.0

It’s been a 10-year journey to get WebRTC 1.0 where it is today in what was characterized in the opening talk as a niche area with less than 0.10% of questions tagged for a related technology.  That is contrary to the growth in new projects, new emerging use cases, and the full-house that packed into the room to learn about how browsers are handling these capabilities – with team representatives from Firefox, Safari, Chrome, and Edge.

![packed room](https://dev-to-uploads.s3.amazonaws.com/i/dlp5s8nn5cnvc0qesa7d.png)

The browser panel covered a variety of concerns and features coming including media handling, mobile versions, progressive web apps, improvements through AI/ML, security, and developer tooling.


# (2) Security is Important in RTC

Security is always a concern in any system but was given special attention in a few talks at Kranky Geek.  Natalie Silvanovich from Google’s Project Zero discussed a few of the dangers from recent exploits that allowed remote execution of code without even requiring a call to be answered by the target.  While this is a more high profile example, looking at websites like Zerodium demonstrate the bounties that are paid for discovering exploits in products.

If you are looking to add WebRTC capabilities to your site, you should either consider using a CPaaS that is already handling the security issues properly or make sure you are doing enough risk mitigation such as some of the ideas listed in the conclusions below:

![security-webrtc-risks](https://dev-to-uploads.s3.amazonaws.com/i/xil0iu3te1bhfdbpkw3i.png)

Another concern that has been prevalent in recent years has been the misuse of IP discovery used by WebRTC to act as a fingerprint and track users.  As Philipp Hancke of webrtcHacks said in his talk: “WebRTC is not an API designed to let you discover a user’s IP without their consent.”  When accessing user media from the microphone or camera, browsers are adding additional protections and solutions such as mDNS – a multi-cast DNS approach to generate local network names that resolve to IP addresses without exposing it to JavaScript for alternate purposes.

Here are a few of the talks to check out:

 - [WebRTC Security, Fuzzing, and more!](https://youtu.be/-qdHAvPSRoo)
 - [Fixing WebRTC IP leaks with mDNS host candidates](https://youtu.be/SqcW8kJAMJg)

If you aren't diligent about security, you may be better off using a
Communications Platform as a Service (CPaaS) that has.


# (3) Communication Requires Good Audio Quality

The "C" in WebRTC is for communication, and if you for two-way communication good audio quality is important.

Microsoft has been extending its browser support for content protection as well as new audio and video capabilities.  It’s an area that Google has also been trying to address in new media processes in Chrome – moving audio processing closer to the hardware and coping with mismatched audio devices / configurations through dedicated audio and video processes.

![Microsoft Edge](https://dev-to-uploads.s3.amazonaws.com/i/ndhpga9gnn7e3ev81ven.png)


For audio perception, Paul Boustead from Dolby gave a good introduction to the theory behind spatial audio.  Given one of the primary objectives in WebRTC is communication, audio is an important part of exchanging information that the best experiences are able to cope with overlapping speech without cutting out important affirmations and verbal cues.

![Audio Recognition](https://dev-to-uploads.s3.amazonaws.com/i/mapz4d9tysdbm9viwv1n.png)

You can read more about this talk in the article [Improving Intelligibility with Spatial Audio](https://dev.to/dolbyio/improving-intelligibility-with-dolby-spatial-audio-at-kranky-geek-rtc-21ja) or check out the [talk video](https://youtu.be/E2p_2g93xFQ). 

# (4) Video Can Be Perceived Better Through Network Management

While audio is important for much of communications, for certain applications it is very important to be able to see what is happening with facial expressions, or just the general area.  The talk [WebRTC – More than Media](https://youtu.be/hq5S5iKJ-v0) and [Optimizing H.264 Encoding for Self-driving cars](https://youtu.be/IA6Z9ey89Qc) discussed applications of tele-operations for robots or automobiles where visual information is crucial for a participant to make decisions.  Between those talks and [Handling 4K WebRTC Streams with Embedded Hardware](https://youtu.be/W3ff4rHSleU) there was a lot of interest in exploring
the trade-offs in the video streaming landscape to balance latency, packet
loss, network congestion, and throughput to give the best perceived experience.

![Optimal Curve](https://dev-to-uploads.s3.amazonaws.com/i/o4p1hfbip5f8ky0spyqz.png)

# (5) WebRTC is Not Just for Conferencing, Several Emerging Use Cases

Through a variety of applications one can see how WebRTC with audio and video can be used to solve a variety of problems.  In the talk The [State of Speech Recognition](https://youtu.be/SExYnIvUsZE), Jeff “Susan” Ward made a few insightful observations: Speech is a major untapped input/output, recognition can balance latency vs. accuracy, and the power of getting to meaning, not just text as the future is not the word but the meaning and intent behind it.


![Real-time speech recognition](https://dev-to-uploads.s3.amazonaws.com/i/grs0axu2pom9e5szivt1.png)


The use case in using WebRTC for gaming from the talk [Google WebRTC & Stadia Review](https://youtu.be/avtlQeaxd_I) is an example where the original vision for WebRTC had not considered.  What was particularly interesting to me was the research done “On Latency and Player Actions in Online Games”.  It isn’t the latency but the perception of latency that is important for enjoyment and that can vary widely depending on the type of game and interaction (a first person shooter vs. a trivia game for example).  One thoughtful detail in this talk was discussing some of the developer tools at https://stadia.dev that will be important for anybody trying to leverage WebRTC for gameplay.

# Want More

That's my summary for what interested me the most, but obviously there was a lot more detail by viewing the talks themselves.  If you want to find them, check out the Kranky Geek Youtube channel:

https://www.youtube.com/channel/UC9qvM7eiCvDRO5Sm28byZiw