WebRTC | WebRTC | 2.2.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    WebRTC

    WebRTC header

    What is WebRTC

    WebRTC for Unity is a package that allows WebRTC to be used in Unity.

    Requirements

    This version of the package is compatible with the following versions of the Unity Editor:

    • Unity 2019.4

    Encoder support

    Platform Graphics API Hardware Encoder Software Encoder
    Windows x64 DirectX11 ✅ (Require NVIDIA Graphics card) ✅
    Windows x64 DirectX12 ✅ (Require NVIDIA Graphics card) ✅
    Windows x64 OpenGL
    Windows x64 Vulkan ✅ (Require NVIDIA Graphics card) ✅
    Linux x64 OpenGL ✅ (Require NVIDIA Graphics card)
    Linux x64 Vulkan ✅ (Require NVIDIA Graphics card) ✅
    MacOS Metal ✅ ✅
    iOS Metal
    Android Vulkan

    Decoder support

    Platform Graphics API Hardware Decoder Software Decoder
    Windows x64 DirectX11 ✅
    Windows x64 DirectX12 ✅
    Windows x64 OpenGL ✅
    Windows x64 Vulkan ✅
    Linux x64 OpenGL ✅
    Linux x64 Vulkan ✅
    MacOS Metal ✅
    iOS Metal
    Android Vulkan

    To check the compatible NVIDIA graphics card, please visit on the NVIDIA VIDEO CODEC SDK web site.

    This package depends on NVIDIA Video Codec SDK 9.1. Please check the graphics driver version.

    • Windows: Driver version 436.15 or higher
    • Linux: Driver version 435.21 or higher
    Note

    On Linux, libc++1 libc++abi1 packages should be installed. Please install like command below

    sudo apt install -y libc++1 libc++abi1

    Installation

    Please see Install package.

    Samples

    The package contains the following samples.

    Scene Details
    PeerConnection Checking the process of connecting to a peer
    DataChannel Sending and receiving text
    MediaStream Sending and receiving video/audio
    Stats Checking the process of getting stats
    MungeSDP Checking effects with mungring SDP parameters
    VideoReceive Sending and receiving video stream
    MultiVideoReceive Receiving multiple video streams with one peer
    MultiplePeerConnections Receiving video stream with multiple peers

    To get these samples, Push the Import into Project button on Package Manager.

    Download package sample

    In This Article
    • What is WebRTC
    • Requirements
      • Encoder support
      • Decoder support
    • Installation
    • Samples
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023