This is a read-only archive of the Mumble forums.

This website archives and makes accessible historical state. It receives no updates or corrections. It is provided only to keep the information accessible as-is, under their old address.

For up-to-date information please refer to the Mumble website and its linked documentation and other resources. For support please refer to one of our other community/support channels.

Jump to content

MumbleLink link with Web Games (in-browser)


TagProKo
 Share

Recommended Posts

How do I link Mumble, including teams and positional audio, to a web game like TagPro?


I plan on making a mod (in the form of a userscript or webextension) for this game, but don't know how to connect it to the shared memory of MumbleLink. Is this even possible from within a browser?


It's likely that it'll only be possible through extensions like NPAPI (flash) which is disabled by default in modern browsers, but I dont know how. Another solution might be to make users install a program that links to MumbleLink and opens up a local HTTP-server that an in-browser userscript can then connect to (userscripts can get around CORS), but that requires players to install both things. Are there any better options?


About the "hassle" of installing userscripts: many TagPro players already have a userscript manager installed because of the vast variety of mods in this format. So that's not a concern.


I have searched for examples, but I haven't found any web game that has implemented MumbleLink before. It would be great if someone knows a game that already does this.

Link to comment
Share on other sites

  • Administrators

No, you can't access shared memory from within the browser. The browser generally blocks access to the system and translates/encapsulates/selectively provides any system information from website code.


Maybe Java Web Start can access shared memory. I doubt Flash can. I doubt asm.js can.


With the move of browsers away from native plugins to web extensions, that's very probably not viable either.


Your best option may be to prepare and distribute a runnable/installable client application yourself. Although simply reusing and embedding chromium or another web rendering engine may not be sufficient, as you'll have to open or adjust it to allow accessing shared memory.

Link to comment
Share on other sites

 Share

×
×
  • Create New...