docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Samples

    The package contains the following samples.

    Scene Details
    PeerConnection Checking the process of connecting to a peer
    DataChannel Sending and receiving text
    Audio Sending and receiving audio stream
    MediaStream Sending and receiving video/audio
    MultiPeers Instantiating multiple peers and streaming 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
    ChangeCodecs Controlling codecs of the video sender
    TricleIce Checking the trickle ICE functionality
    RestartIce Checking do an ICE restart
    PerfectNegotiation Demonstrating Perfect Negotiation Pattern
    Latency Measuring a latency of video streaming
    ReplaceTrack Change another video track without stopping video streaming

    Import samples in project

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

    Download package sample

    Sample menu

    Menu scene is helpful for checking multiple sample scenes. You can find the scene Example/Menu/Menu.scene.

    Sample menu

    Open Menu scene and press Play button, as you can see the menu for sample scenes.

    Sample menu

    Install samples into mobile devices

    It's easy to try all samples on mobile devices if only you put sample scenes into Scenes in Build in Build Settings Window. Menu scene should be loaded as a first one so you need to rearrange scenes.

    Build Settings

    Note

    If building app for iOS, you need to add description for CameraUsageDescription and MicrophoneUsageDescription on PlayerSettings. VideoReceive sample use Camera and Microphone. (If not add description, build is failed.)

    Camera&Microphone Usage Description in PlayerSettings

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)