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

    WebRTC

    WebRTC header

    WebRTC for Unity は、 WebRTC を Unity で利用可能にするためのパッケージです。

    このパッケージを利用することで、ブラウザとの連携が可能になります。 Unity Render Streaming パッケージ は、WebRTC を利用したサンプルを提供しています。

    動作要件

    以下の Unity バージョンに対応しています。

    • Unity 2019.3
    Platform Graphics API Hardware Encoder Software Encoder
    Windows x64 DirectX11 ✅ (NVIDIA のグラフィックスカードが必要) ✅
    Windows x64 DirectX12 ✅ (NVIDIA のグラフィックスカードが必要) ✅
    Windows x64 OpenGL
    Windows x64 Vulkan
    Linux x64 OpenGL ✅ (NVIDIA のグラフィックスカードが必要)
    Linux x64 Vulkan
    MacOS OpenGL
    MacOS Metal ✅

    対応している NVIDIA のグラフィックスカードについては、NVIDIA VIDEO CODEC SDK のページをご覧ください。

    Note

    Linux で動作させる場合は、 libc++1 libc++abi1 をインストールする必要があります。

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

    インストール方法

    パッケージをインストールするためには、パッケージマネージャーから WebRTC for Unity を検索しインストールします。パッケージマネージャーの利用方法はドキュメントを参照してください。

    WebRTC Package Manager

    サンプル

    パッケージでは以下のサンプルを用意しています。

    シーン名 説明
    PeerConnection ピアを接続する手続きを確認するシーン
    DataChannel テキスト送受信を確認するシーン
    MediaStream ビデオ/音声送信を確認するシーン

    サンプルを入手するには、 Package Manager の Import into Project ボタンを押してください。

    Download package sample

    その他の表示言語

    • English
    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