Code Monkey home page Code Monkey logo

chromium-unity-server's Introduction

chromium-unity-server

Proxy server for an embedded Chromium browser in your Unity games.

๐Ÿšง This is a work in progress, do not use this ๐Ÿšง

Embedded Chrome browser ingame in Unity

๐Ÿšง This is a work in progress, do not use this ๐Ÿšง

Features

  • Use all the modern web features in Chromium.
  • Fast data exchange via named pipes, making high FPS possible.
  • Pass mouse and keyboard events from game to browser.
  • Input support for key combinations, dragging, selecting and scrolling.
  • Bi-directional messaging between your C# code and in-browser JavaScript code.

The project consists of two parts: First, the server, which manages a CEF (Chrome Embedded Framework) browser instance. Second, a .NET library for integration in Unity or other applications, which communicates with the server via named pipe.

A test client is also available (see below).

Requirements

Currently only targets Windows. Mono support is possible in the underlying libraries and APIs, so Linux and Mac support is possible with some additional work.

.NET 4.x scripting compatibility is required, you will need to enable the "Expirimental" scripting engine for your unity project. The legacy / stable scripting engine will not work, as it does not support named pipes.

Only 64-bit architectures are supported. If you are looking for x86 support, this project is not for you.

Test client

The test client project is also bundled in the solution. It is not required, but can be used to test / debug the CEF Server away from your game.

Test client

Usage notes

Audio playback

Audio playback that occurs in the browser (for example, when playing a YouTube video) is not played in game / in engine. Instead, it is played on the separate browser process. That means it has its own, separate volume control and cannot be used to produce 3D audio.

The name of the executable will be set to "CEF Ingame Browser" so that users can identify the audio source in their volume mixer, as seen below.

Volume mixer

chromium-unity-server's People

Contributors

roydejong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromium-unity-server's Issues

Why Chromium doesn't support Android?

I hope my website can run on VR devices. This website needs to use VideoEncoder, but webview and gecko do not support VideoEncoder, So I want to know why Chromium doesn't support Android?

License?

Hello!

Although you said It's under construction, I found this code is wonderful start point for in-game browser for Unity!

I was wondering what the intended license for this project is.
Could you specify what license is you intended?

Sincerly yours
Park.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.