Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Supporting Web UI with Tauri #72

Closed
steckes opened this issue May 4, 2023 · 4 comments
Closed

[Feature] Supporting Web UI with Tauri #72

steckes opened this issue May 4, 2023 · 4 comments

Comments

@steckes
Copy link

steckes commented May 4, 2023

Hey, thanks for your great work!
I would love to never touch JUCE again and stick to this framework for audio plugins.
As I was building some Juce Plugins with Web UI using Websockets to connect to the audio process, I was wondering if it would not be way more elegant with Tauri's messaging system in Plugins.
It is just soo much faster to write guis in javascript, that this would be a killer argument for using Rust for plugins.

So have you thought about integrating Tauri as UI Framework or do you see a possibility for this at all?

@steckes steckes changed the title Feature Request: Supporting Web UI with Tauri [Feature] Supporting Web UI with Tauri May 4, 2023
@robbert-vdh
Copy link
Owner

Some people have tried to use the webview crate with varying levels of success. Tauri would need to be forked since it can't e embedded inside of other applications at the moment. I'll also only merge a solution into the main NIH-plug repo if it works on all platforms and using all DAWs. Tauri and all other off the shelf solutions right now use gtkwebkit on Linux which is not suitable for plugins. So you would need to fork Tauri first and replace the web browser with, say, Servo (which in turn would also require work to be able to be used as an embeddable web browser).

@steckes
Copy link
Author

steckes commented Jul 21, 2023

Thanks for your answer! Sounds complicated indeed and might not keep up to the performance in the end. Do you think slint would be easier to integrate?
I guess you don't want to build support for a library that is not fully MIT, but I don't really understand the new royalty free license... Seems like it is now free to modify and use for desktop targets?
Anyways, I guess I should learn iced or vizia in the end ;)

@steckes steckes closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
@steckes
Copy link
Author

steckes commented Sep 11, 2023

Hey!
Just wanted to check if you understand how it should be possible now to use Slint in VSTs.
Their newest blog post: https://slint.dev/blog/slint-1.2-released

Any chance you are interested in supporting this?

@robbert-vdh
Copy link
Owner

From what I've heard someone handrolled a plugin wrapper and a windowing layer to use Slint in a plugin. But I'm not up to date with all the details. I'll definitely accept a PR for a nih_plug_slint package, but I'm not planning on actively doing so myself since I'd prefer to stick with/work a GUI layer with a permissive license (and ideally, one that produces small-ish binaries).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants