Night Club VR Streaming Demo is an Onix internal project aimed at testing and demonstrating streaming capabilities in Unity within a VR environment.
The project also involved comparing two streaming technologies:
- WebRTC/LiveSwitch
- Agora SDK
The idea was to create a virtual nightclub, where users could listen to music and watch live video streams from performers (e.g. a DJ) in real-time. Our 3D team was responsible for designing the nightclub model, while the Unity dep handled the functional aspects.
To enable real-time streaming, we utilized the WebRTC framework, leveraging a pre-built implementation from LiveSwitch. This proved simpler and faster than developing our own WebRTC functionality from scratch.
As for Agora, it has all pros and cons of the ready-made solution:
Pros:
- easy & quick to integrate
- flexible price
- wast functionality
Cons:
- dependancy from Agora
- some security concerns due to third-party (Agora) servers
as a ready-made solution, Agora has functionality limitations
we can't handle Agora's bugs
WebRTC is a free and open-source project providing web browsers and mobile applications with real-time communication (RTC) via application programming interfaces (APIs). It allows audio and video communication to work inside web pages by allowing direct peer-to-peer communication, eliminating the need to install plugins or download native apps. (Wiki)
Pros:
- more secure data transferring
- quick and light, can work just in the browser (Google Meet works on it)
- functionality can be customized
Cons:
- all functionality is to be custom-written