News for hackers. Stuff that matters.
Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Wednesday March 08, 2017 @03:59PM (#13823725)
Developer here. Appreciate any feedback! The goal is to make it really easy to write multi-user / multi-player / social virtual reality experiences on the web, on top of a VR framework called A-Frame.
Re:Show HN: A webrtc library for writing multi-user virtual ... by gol706 on Wednesday March 08, 2017 @05:03PM (#13824280)
This is really cool. My wife has been experimenting with using Google Cardboard in her classroom to do virtual field trips, and none of the resources she can find let you add in your own content. I've been thinking of building her an app with A-Frame and something like this to help synchronize what everyone is looking at.
Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Wednesday March 08, 2017 @05:18PM (#13824424)
Thanks! And that should be do-able. All the examples show an avatar but you don't have to use one, you could just use the library to sync the active 360 image or environment.
Re:Show HN: A webrtc library for writing multi-user virtual ... by buttershakes on Thursday March 09, 2017 @03:16PM (#13833067)
I love this, its simple and makes sense. Would love to talk about it also and what you plan on doing with it next.
Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Thursday March 09, 2017 @04:21PM (#13833791)
Happy to chat more. Twitter is probably the best place: @haydenlee37, or find my email on my website: haydenlee.io.

Next steps: finishing a few basic requirements (master client, scene objects that are defined in the HTML and are always owned by the master client).

Then I'm thinking about how to make it more flexible on the networking side, potentially let people only use websockets if they don't want to do P2P / WebRTC.

Will be making tutorials for it too.

I'm thinking I'll aim for one major feature a week.

Re:Show HN: A webrtc library for writing multi-user virtual ... by j_s on Wednesday March 08, 2017 @09:55PM (#13826535)
Wondering what the WebRTC UDP guts are built on, if it is a new implementation or built on something existing.

Big HN discussion on the rough edges of this tech last week: A solution for enabling UDP in the web https://news.ycombinator.com/item?id=13741155

Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Wednesday March 08, 2017 @11:50PM (#13827070)
It's using EasyRTC to handle WebRTC. I found it a delight to work with. The live examples are running with TURN server hosted by Xirsys.

I did catch that article last week. If I remember correctly it boiled down to a lack of good support for UDP / WebRTC in a client-server arch. It's actually one of the problems I want to play with soon. There are some frameworks, like Janus, that do it but I haven't heard great things.

Re:Show HN: A webrtc library for writing multi-user virtual ... by redka on Wednesday March 08, 2017 @05:39PM (#13824611)
Looks very neat. I'm curious how it syncs the entities. Does everyone send to everyone? I'd imagine you couldn't have too many clients at once if that was the case.
Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Wednesday March 08, 2017 @05:40PM (#13824625)
Yeah currently its a p2p, broadcast model. I haven't tested max capacity yet, would be interested to know.
Re:Show HN: A webrtc library for writing multi-user virtual ... by mLuby on Wednesday March 08, 2017 @04:31PM (#13824005)
Very cool! Would be nice to be able to chat. :)
Re:Show HN: A webrtc library for writing multi-user virtual ... by haydenlee on Wednesday March 08, 2017 @04:59PM (#13824242)
Its not included in any of the live examples but audio chat is really easy to turn on. There's just an html attribute you need to change: https://github.com/haydenjameslee/networked-aframe#scene-com...