WebRTC Audio & Video

Overview

WebRTC (Web Real-Time Communication) is a widely used framework that enables real-time audio, video, and data communication in web applications. Your app may include voice calls, video conferencing, or peer-to-peer data sharing via WebRTC.

How WebRTC Permissions Work in WebView Apps

Similar to how permissions work in desktop and mobile browsers, your Median app will automatically request microphone and camera access when your embedded WebRTC application initiates media capture.

Supported WebRTC Permissions

  • 🎤 Microphone Access - Required for voice calls or audio streams
  • 📷 Camera Access - Required for video calls or media recording

When a WebRTC session is triggered in your app, users will be prompted by the system to grant access. This prompt behavior is native and consistent with platform expectations on both Android and iOS.

👍

No Extra Configuration Needed

Median automatically handles WebRTC permission prompts using its secure WebView implementation. You don't need to write native code to enable camera or microphone access.

Developer Tips for WebRTC in Median Apps

  • Ensure your web app is served over HTTPS, as WebRTC permissions are restricted on insecure origins.
  • Use navigator.mediaDevices.getUserMedia() to trigger permission requests. Median's WebView will detect these calls and invoke the native permission dialog.
  • Always include graceful fallbacks and error handling in case users deny access to camera or microphone.

Test WebRTC Functionality

You can test WebRTC features in your Median app using official tools and demos: