This is a project to test sending and receiving streams and sending and receiving data on data channels using multiple WebRTC assets (SDKs) to Ant Media Server in Unity.
After cloning the repository, open the project in Unity and install dependensies and "Ant Media Server Unity SDK" and "WebRTC for Unity Package". Scenes / AMSTest Run when you open a scene. Send the video clip as a video stream.
https://docs.unity3d.com/Packages/com.unity.webrtc@1.1/manual/index.html
- Ant Media Server Unity SDK
- WebRTC for Unity (Unity Official Asset)
Switch assets with [WebRTC Asset:].
- AMS => Ant Media Server Unity SDK
- Unity => Unity WebRTC (WebRTC for Unity)
- Sometimes the connection fails.
- The Editor crashes when connecting using the Ant Media Unity SDK on the Editor. If you build and run it, it's okay.
MIT