![]() ![]() When it comes to performant peer-to-peer networking in the browser, there is really only one show in town: WebRTC. ![]() The rest of the post will break out each of these steps separately with more detail - we had to sacrifice depth for breadth in this post, but if you’re interested in more detail please let us know in the comments! Networking Collect input/gamepad events, pack them in a binary format, and send to the host.Decode audio via Opus and play via Web Audio API.Punt video to a element via Media Source Extensions.Start receiving video, audio, and control messages.Send the client config to the Parsec host, initialize the stream.Make the peer-to-peer connections via WebRTC.Here is the general progression with the entry point in : If you’re interested in learning more about other Parsec tech, take a look at our blog post from 2016 to learn a bit more. The repo is available on GitHub and is written in lean vanilla ES2018 for simplicity - I am obligated to mention that there was a strong internal lobby at Parsec for TypeScript, so we may convert it at some point in the future… Real men rush mid - then stop recording before getting one-shotted at the top of the stairs. While doing game streaming in the browser has some current disadvantages compared to our native applications, it has been nicely playable for every game we’ve tried, so we decided to make our work public and share what we’ve learned in this blog post. We’ve been tinkering with a browser client for Parsec for a while now, and have noticed Chrome’s performance steadily improving, particularly regarding networking and media playback (via WebRTC and Media Source Extensions). Google’s first entry into the arena is Ubisoft’s Assassin’s Creed Odyssey, with the kicker that it runs from within Chrome! This kind of makes sense as a distribution channel for Google over a native application given Google’s Chrome/Chromebook empire. With Google’s release of Project Stream this month, there has been a lot of recent interest in low latency game streaming for cloud gaming.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |