Play Cube Slam, a real-time WebRTC video game
Blog post from Google Cloud
Cube Slam, a real-time video game utilizing WebRTC technology, allows players to engage in an old-school arcade experience directly through their browser, eliminating the need for plug-ins. This Chrome Experiment, highlighted by the Chromium team, uses components such as getUserMedia for webcam and microphone access, RTCPeerConnection for video streaming, and RTCDataChannel for synchronized gameplay, all while leveraging peer-to-peer connections to minimize latency and server costs. It marks the first large-scale application of RTCDataChannel, offering an "unreliable" mode to prioritize performance in scenarios like gaming where low delay is crucial. While currently supporting only the unreliable mode in desktop Chrome, efforts are underway to implement the latest WebRTC specifications, which will enable a reliable mode using the SCTP protocol and extend WebRTC availability to Chrome on Android. As WebRTC adoption grows across browsers, the aim is for Cube Slam to be playable on any device, showcasing the potential of open web technologies for real-time communication and gaming.