gui – How can I implement UI in Unity using Chromium?

I’m looking for an alternative to UI Builder.

Ideally I’d like to have basically a Chromium instance atop Unity3D which would have its JS calls somehow land in the C# (maybe in the “Update” loop it listens to a constant stream of potential calls and the parameters will correspond to function names in my Unity code, I don’t know)

here’s what I found which doesn’t quite live up to my expectations:

This Unity forum thread may be relevant.
Chromium Embedded Framework was a tool used by some assets on the asset store to create chromium UI but it has been removed.

If not using these assets, how can I implement my idea of using Chromium as my UI layer?

gui – How can I implement UI in Unity using Chromium in 2021?

I’m looking for an alternative to UI Builder.

Ideally I’d like to have basically a chromium atop Unity3D which would have it’s JS calls somehow land in the C# (maybe in the “Update” loop it listens to a constant stream of potential calls and the parameters will correspond to function names in my Unity code, I don’t know)

here’s what I found which doesn’t quite live up to my expectations :

this one doesn’t support windows : https://github.com/gree/unity-webview

This : https://assetstore.unity.com/packages/tools/gui/3d-webview-for-windows-and-macos-web-browser-154144 : requires the UI to be served on an actual live URL and for Unity to access it via that URL and for all interaction to be handled via API, impractical or slow at best.

This is interesting : https://assetstore.unity.com/packages/tools/gui/powerui-html-css-10374 but has been made in 2011, the documentation is all gone. the support for css feature is probably incredibly slim.

This one looks pretty good : https://assetstore.unity.com/packages/tools/gui/embedded-browser-55459 but I’m unsure that it could be bent into a UI system. I want it to frame my game, not to cover it.

This : https://coherent-labs.com/ : looks probably the best.

although the CSS implementation seems a tad lackluster : https://coherent-labs.com/Documentation/unity-gameface/df/d2c/css_props.html
Also this project was started in 2012, it’s probably carrying very old, very slow code.

EDIT : it seems that this may be relevant: https://forum.unity.com/threads/unity-2020-x-removal-of-the-chromium-embedded-framework-and-its-implication-on-asset-store-tools.856417/
Chromium Embedded Framework was a tool used by some assets on the asset store to create chromium UI but it has been removed.

Is there a Modern triple A “Chromium-As-A-UI” Unity solution and if so what is it?

20.04 – Chromium won’t start

Something keeps happening to Chromium that times to times won’t start. I already searched for other similar questions but i do not find a solution. It appears this error in the syslog everytime i try to start Chromium:

Nov 18 17:56:15 hiro systemd(1791): Started Application launched by gnome-shell.
Nov 18 17:56:15 hiro chromium_chromium.desktop(1595537): cannot snap-exec: cannot read info for "chromium": cannot find installed snap "chromium" at revision 1399: missing file /snap/chromium/1399/meta/snap.yaml
Nov 18 17:56:15 hiro systemd(1791): gnome-launched-chromium_chromium.desktop-1595537.scope: Succeeded.

But when i check for this missing file:
ls /snap/chromium/1399/meta/snap.yaml

It is there. Any ideias to fix this? Thank you.

UPDATE

I tried this command:

dpkg-reconfigure chromium-browser

but did not change the problem.

Then i tried:

snap remove chromium

But return a error:

error: cannot perform the following tasks:
- Disconnect chromium:password-manager-service from core:password-manager-service (internal error: connection "chromium:password-manager-service core:password-manager-service" not found in state)

chromium – How prevent “touch” pointer in Brave

I’m using Brave Version 1.16.72 Chromium: 86.0.4240.183 (Official Build) (64-bit) on Windows 10.

When I use Brave > ☰ > More tools > Developer tools, even if I leave it in “Responsive” mode, I see the mouse cursor change to a “touch” pointer like this:

enter image description here

In regular Chrome (and in Brave if I am not using Developer Tools), the cursor looks as it should:

enter image description here

This matters when debugging websites during web development.

How can I ensure that Brave allows a normal desktop (non-touch) cursor when in Developer Tools “Responsive” mode?

.desktop – Prefix argument for starting chromium with hardware acceleration

I wanted to enable the hadware acceleration of the chromium browser and therefore followed this article. At first it didn’t work, but then I discovered a comment in the comment section which suggested to use the command LIBVA_DRIVER_NAME=i965 chromium-browser to start the chromium browser via terminal with hardware acceleration enabled and it worked! Then I thought to create a new custom desktop file for chromium to include this prefix automatically. I copied the existing dekstop file from /usr/share/applications to /home/myUser/.local/share/applications. Then I edited the desktop file and infront of every Exec Keyword I added LIBVA_DRIVER_NAME=i965. The resulting .dekstop file looks so now:

[Desktop Entry]
Version=1.0
Name=Chromium Web Browser
Name[ast]=Restolador web Chromium
...
Exec=LIBVA_DRIVER_NAME=i965 chromium-browser %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium-browser
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=NewWindow;Incognito;TempProfile
X-AppInstall-Package=chromium-browser

[Desktop Action NewWindow]
Name=Open a New Window
Name[ast]=Abrir una Ventana Nueva
Name[bg]=Отваряне на Нов прозорец
...
Exec=LIBVA_DRIVER_NAME=i965 chromium-browser

[Desktop Action Incognito]
Name=Open a New Window in incognito mode
...
Exec=LIBVA_DRIVER_NAME=i965 chromium-browser --incognito

[Desktop Action TempProfile]
Name=Open a New Window with a temporary profile
Name[ast]=Abrir una ventana nueva con perfil temporal
Name[bg]=Отваряне на Нов прозорец с временен профил
...
Exec=LIBVA_DRIVER_NAME=i965 chromium-browser --temp-profile

But now chromium browser is not found anymore by the launcher, so it seems like my `.desktop` file is somehow wrong. Can somebody explain to me what the problem could be here?

Thanks in advance!

PS: I'm using Ubuntu 20.04.

Android chromium: [FATAL:memory_linux.cc(36)] Out of memory

I am working on tv app. i am using exoplayer2 lib for displaying videos and vast tag ads. after few hours video play i am getting below error. i don’t know way i am getting this error because i am not using webview anywhere in my app and still i am getting this error.

if any knew about this error please let me know me.

Here is My Log file link
Log file

Here is My Activity Code Link BrightcovePlayerDemoExo

VIdeos aren’t playing on Chromium

I use Crouton (Ubuntu 16.04.6 LTS), but I’m new to it. Please provide advice in layman’s terms.

Everything was working fine a couple of weeks ago. It’s been a while since videos have not been able to play, but I initially didn’t notice because sometimes the image loads and it looks like my connection’s just slow. I would get bored with waiting and switch back to ChromeOS where videos play fine.

My initial problem was:
On YouTube, if I hover over a video, it will provide a preview like it does normally. But any video on any site appears not to load. No sound and a frozen or blank screen. On Udemy, I can skip to any point in a video timeline and get a frozen view of the visual, but no sound and it doesn’t play.

On SoundCloud, sound doesn’t play.

Gifs are playing fine.

I found this article that advised to install another flash player. So I installed Gnash.

Now Youtube can sometimes, but not reliably, play the visual, but there’s no sound.

Chromium (Snap) on Ubuntu 20.04 – Some webapp shortcuts don't work – Workaround

I just installed Ubuntu 20.04 and tried to get my favorite web applications (i.e.Google Calendar, WhatsApp Web) up and running again. Since Firefox removed this feature years ago, I've been using Chromium for it. On April 18, I could just go to my favorite website, click on the hamburger menu, & # 39; More Tools & # 39 ;, & # 39; Create Shortcut … & # 39 ;, the Tag & # 39; Open as Window & # 39; and bam, the WebApp was ready.

However, in 20.04 on my Chromium Snap system, creating a WebApp sometimes causes Chromium to crash, leaving a .desktop file that doesn't work.
In the .desktop file that is created on the desktop, right click and select "Allow Start". In most cases this works and the web application gets an appropriate icon and can be started.

In other cases (i.e. when creating a shortcut from chrome: // apps or when creating the shortcut that caused Chromium to crash), the icon becomes a "bad" character:

Some work, some don't

When I double click on WhatsApp, it opens as a "real" app (as seen in the screenshot). However, when I double-click on Google Calendar, a new empty full Chromium window opens. And when I double-click on Trello (from which the shortcut was created from chrome: // apps), a new full Chromium window opens (instead of an & # 39; App & # 39; window), but it goes to trello.com leads.

I tried to find the culprit for the error by looking at the .desktop files of all three apps. So far, however, I have not been able to see what could cause this behavior.

When I wanted to find out why Chromium crashed when I created the shortcut to Google Calendar, I started Chromium from the command line: $ /snap/chromium/1123/usr/lib/chromium-browser/chrome.

To my surprise, Chromium did NOT crash when creating the shortcut. In addition, the .desktop file was now immediately placed in ~/.local/share/applications/, which was not the case in my previous attempts.

So in the end everything seems to be in order, and in retrospect I suspect that an old leftover cruft / bit red is the cause of all of this – I finally installed 20.04 with my unchanged 18.04 / home partition …

Which leaves me with the question of whether I should actually post this – I think I will be hoping to be able to give everyone else who comes across some options to look at.

If this is actually something other people come across, I would like to provide more information so it can be debugged.