An interesting Chrome experiment based on WebRTC, which incorporates webcam and microphone input, and the ability to play a 3d version of Pong, an arcade classic. It works around the firewall limitation of P2P by using a TURN relay server.

Cube Slam uses getUserMedia to access your webcam and microphone (with your permission, of course), RTCPeerConnection to stream your video to a friend, and RTCDataChannel to transfer the bits that keep the gameplay in sync. If you and your friend are behind firewalls,RTCPeerConnection uses a TURN relay server (hosted on Google Compute Engine) to make the connection. However, when there are no firewalls in the way, the entire game happens directly peer-to-peer, reducing latency for players and server costs for developers. [more details on the Google Chrome blog]

Similar real-time communication has been possible for years with Flash Player, and it’s core technology RTMFP made it into the IETF. More details on WebRTC and the relationship to RTMFP in this interview.

Play Cube Slam.

Jens Loeffler

Author of Overdigital.net. The views/posts are my personal opinion.

http://www.overdigital.net

1 comment on “Cube Slam – a Real-time WebRTC Chrome Game

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

banner
Follow

Get every new post delivered to your Inbox

Join other followers: