docs.unity3d.com
    Show / Hide Table of Contents

    Receiver Sample

    This sample shows that displaying a video streamed from another Unity.

    This sample can use in combination with other samples below.

    • Broadcast
    • Bidirectional

    ReceiveVideo Sample

    Note

    In this version, it was checked on only iOS devices. Android and other devices are not supported by this sample.

    Note

    If no codec is available on both sender and receiver, the video can not stream. Please note that the compatibility of codecs is different corresponding to platforms and graphics API.

    Usage

    Hardware acceleration

    Recommend enabling Hardware Encoder support on the Render Streaming inspector to improve performance using hardware acceleration.

    Procedure

    This procedure is for using it with the Broadcast sample.

    1) Launch the signaling server using public mode. Please refer to this link for launching.

    Launch web server

    2) Build a Receiver scene in Unity Editor, and launch an application.

    3) Open Broadcast scene.

    Open Broadcast scene

    4) Specify IP address of the signaling server to the Signaling URL parameter on the inspector.

    Signaling url on inspector

    5) Click on the Play button in Unity Editor.

    6) Operate the receiver and check the streaming video/audio correctly.

    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