Play Cube Slam Like A Boss And Watch Your Friend Lose Over Video

Chrome's latest experiment is a real-time video game built with #-Link-Snipped-#. WebRTC is an open web-based technology that allows real-time communication without the hassle of plug-ins. Once Cube Slam has your approval, it uses getUserMedia to access your webcam and microphone.
RTCPeerConnection streams your video to a friend, and RTCDataChannel transfers the bits that keep the gameplay in sync. So, if and when there's lag and you are going to ragequit, direct all your curses at RTCDataChannel.

Cube Slam
If you and your opponent use firewalls, RTCPeerConnection uses a TURN relay server which is hosted on Google Compute Engine to make the connection. However, if you are cool like that and have no interfering firewalls in the way, the entire game runs directly peer-to-peer, reducing latency for players and server costs for developers. How nice and generous.

The break down goes like this, the RTCDataChannel provides an API similar to #-Link-Snipped-#, but unlike WebSocket's Client-Server configuration, it sends the data over the RTCPeerConnection peer-to-peer link. The RTCDataChannel usually sends the data securely, but switches to "unreliable" mode to maintain high performance by compromising on the chances of every packet making it across the network. Ideal for situations where low delay matters more than 100% delivery. Case in point, Games. So, if a single packet decides to wander, it doesn't bring the whole app down.

WebRTC will also be made available for Chrome on Android later this year. Know more about the game #-Link-Snipped-#. Nerd out!

Source: Chromium Blog: Play Cube Slam, a real-time WebRTC video game

Replies

You are reading an archived discussion.

Related Posts

Following the official launch of Amazon eCommerce store in India, the company has just announced the arrival of Amazon Fire HD, Kindle Paperwhite and the Kindle via the Kindle Store...
Some people think, Playing "Hardcore games" like Battlefield 3, God Of War, Farcry 2, Uncharted 2, Call OF Duty Series, etc etc makes them "Hardcore gamer". Well, that's funniest thing...
Intel intends to deliver on the ever-growing need of storage space for Cloud Computing. The Solid-State Drive Data Center S3500 Series aims to increase multicore CPU utilization, reduce rack space...
The biggest problem associated with two-wheelers, especially scooters is that getting your vehicle on the main stand is a trouble. I haven't seen much of innovation on that front, but...
The message is very simple, Yahoo isn't interested in being the alternate recovery mail ID you only log in to, well, recover your passwords for other mail accounts. And if...