Skip to content

httnn/nih-plug-webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nih-plug-webview

Warning: work in progress, not production-ready yet. Experimental webview editor for nih-plug using wry. Built on top of baseview.

Current status

I've only been able to test this on macOS so far on which it has been working quite robustly. Now that wry officially supports attaching to an existing window handle, I'm hoping that Windows also works but this needs to be verified.

On macOS there is an unresolved issue where pressing the escape key in Ableton Live will lead to a crash. I've reported this to Ableton, and I'm currently mitigating this by consuming the escape keypress behind the scenes.

Features

  • send arbitrary JSON values back and forth to the webview using Serde
  • resizable plug-in window
  • drag and drop files with full paths
  • callback for deciding which key events from DAW to consume
  • customisable background color for when the view is still loading (avoid initial flash of white)
  • use devtools

Usage

Check out the example.

Build the example with cargo xtask bundle gain in the example folder.