DEV Community

Creating a Multiplayer Game with WebRTC

Ryan Baxley on July 10, 2017

My goal with this project was to develop an online multiplayer game which would use as little server resources as possible. I was hoping to be abl...
Collapse
 
naviphuc profile image
hoang trong phuc

Can webRTC connect with global network and ios Devices?

Collapse
 
rynobax_7 profile image
Ryan Baxley

iOS 11 is the first iOS version to support WebRTC.

Collapse
 
naviphuc profile image
hoang trong phuc

But I cannot connect with device in external network. I just only connect with same wifi

Thread Thread
 
rynobax_7 profile image
Ryan Baxley

No, you can connect any internet connected device with any other internet connected device, even if they are on different networks.

Collapse
 
lucpattyn profile image
Mukit, Ataul

Actually you meant iOS 11 is the first to support webrttc in its browser (safari). You could develop native apps with webrtc in previous versions too.

Collapse
 
maanshanguider profile image
MaAnShanGuider

cool article.

Collapse
 
janhavi97 profile image
Janhavi Patil

I just wanted to use this game for my project. Can i know how can i access this??

Collapse
 
rynobax_7 profile image
Ryan Baxley

You can find the source code here

Collapse
 
janhavi97 profile image
Janhavi Patil

Sorry i got code but hpw to execute it??

Collapse
 
rynobax_7 profile image
Ryan Baxley

The app was bootstrapped with create-react-app, so you can start it with npm install followed by npm start.

Collapse
 
umesh1134 profile image
Umesh Kumar

hi ryan, how to handle the incoming stream from peer. want to prompt the user to accept/reject before getting the audio/video/data stream.