Closed DCTech-lab closed 1 year ago
Do you intend to add more to the PR? It is pretty much incomplete (screen capturing, keyboard & mouse support etc) and causes new compiler warnings. If this is really just to make it compile and use the the generic editor for plugins hosted on linux, you should
thanks for the PR!
Hi Apohl,
For native screen capturing, can't we use generic JUCE functions like createComponentSnapshot, as in below code: auto editor = plugin->getActiveEditor(); auto editorRectangle = editor->getBounds(); auto image = editor->createComponentSnapshot(editorRectangle, true); JPEGImageFormat jpegFormat = JPEGImageFormat(); jpegFormat.writeImageToStream(image, socket2Client);
Here we may not have fine control over brightness etc, but that is simple and plateform independent. Actually for linux part i thought to add in that way.
Also we can use generic JUCE key press events instead of plateform specific native code
Thanks,
Hi Apohl,
For native screen capturing, can't we use generic JUCE functions like createComponentSnapshot, as in below code: auto editor = plugin->getActiveEditor(); auto editorRectangle = editor->getBounds(); auto image = editor->createComponentSnapshot(editorRectangle, true); JPEGImageFormat jpegFormat = JPEGImageFormat(); jpegFormat.writeImageToStream(image, socket2Client);
Here we may not have fine control over brightness etc, but that is simple and plateform independent. Actually for linux part i thought to add in that way.
Also we can use generic JUCE key press events instead of plateform specific native code
Thanks,
Hey Durgesh,
this was my very first approach, but the problem is that you can't capture context menus using this approach.
Best, Andreas
Fixed the warnings and did a rough implementation of screen capture and mouse / key handling. The changes in server.hpp is to remove conversion warning and was not due to my changes.
Could not test the feature as the plugin (chowmatrix from github) window doesnt show gui and later size becomes zero (though show plugin window button on from window client on reaper works). Needs fixing the plugin window issue first to test the feature. Code compiles and runs fine on windows and linux (xubuntu)
Sorry for the delay. I just had one question, but I'm going to merge this soon. Thanks for this!
will take a look soonish. cheers.