/Unity--

开源预制件,可以轻松地将视频从Unity虚拟相机直播到Agora实时视频聊天或实时视频流媒体频道。

Primary LanguageC#MIT LicenseMIT

Unity-Virtual-Camera-Prefab

An open source prefab that makes it easy to live stream from a Unity virtual camera into an Agora stream. This repo should be included as a submodule for on-going Agora project development. For quick integration, please go to the Release section for downloading the exported prefabs.

Dependency:

Use TokenClient for token association. See the repo for this.

Usage

  1. Drag the Agora Virtual Camera Prefab onto the Scene Hierarchy.

  2. Add your Agora AppID and either a temp token or enable UseTokenClient for a TokenClient plugin.

2b. The Agora TokenClient prefab assumes the token server returns the same JSON response as the Agora Token Server in Golang guide.

  1. Set the Channel Name

  2. Drag the various Game Objects from the scene into the Prefab input fields.

Resources