electroncapture
electroncapture copied to clipboard
Feature Request: Custom Javascript & Custom CSS
At the moment, the main feature that prevents me from using electron capture over Vingester, is the lack of an ability to apply custom JS and custom CSS to be applied to the captured website.
It appears that Electroncapture currently supports custom css support! however it's not currently documented in the readme.
@ryantheleach I do support the Electron Capture app, so if you need something improved with it, let me know.
Hey Steve, I'm guessing you replied by email, and due to rapidly switching between threads/projects replied to the wrong one.
This was me kindly asking for what I needed in order to make electron capture fit my use case <3
I am having a hard time juggling issues currently, yeah.
As per this ticket, yo mention you want CSS and JavaScript injection with Electron Capture. You've already noticed that there is CSS injection it sounds like.
If you just need a similar option added, to allow for Javascript injection (and not just CSS injection), I can accommodate that. Currently it would be via right-click insert JS, I guess.
However, more details would help as to what you are looking for. Is the current implementation with CSS fine?
I see you have a thread going on dr.ralf's page: https://github.com/rse/vingester/issues/83
It's becoming increasingly harder to support Vingester, as its based on obsolete libraries, and the support I was offering it was for VDO.Ninja. Since I don't us botc, I have little way to test to ensure any changes I make actually work, other than spending time getting familiar with it, replicating the issue, and then solving this issue. While it's possible I could do it, it's in conflict with my current obligations as I've overstretched my responsibilities already.
Electron Capture lets you capture a clean window of a website. You can use OBS window capture or the NDI window capture tool with Electron Capture to do what you need I think -- it would be more performant than Vingester, however it can be a bit more cumbersome.
Electron Capture does support a command line interface, so I could extend that also to support something like CSS / Javascript in a more programmatic way, than with right-click menus. You would use a batch file instead of a command interface to stay organized.
I'm really stretched on time, so the smaller the request, the more likely I can achieve it for you.
Ideally I would like to be able to specify a css & javascript file via command line, to reduce the amount of set up needed each recording session.
I meant to take some time to play around with electron capture to get to know it better, but I'm yet to attempt to run a recording session with Electron Capture to see if it avoids any of the issues I was having with Vingester, as the custom Javascript is blocking my ability to test it (it's simply too much work to manage even a single instance reliably and run the stream) and the issues only tended to show themselves in a full-stress test environment, and wouldn't reproduce themselves in testing.
As an aside I did manage to do some rudimentary audio tests, the good news is, right clicking and choosing an audio device (after elevating, which I'm not sure why that's necessary to swap audio devices, since I'm not using Node API's as far as I know) seems to work, it'd just be ideal if it was able to choose the correct audio device as soon as it was opened via the command line.
In short, what makes Vingester attractive is the promise of being able to manage everything centrally, have it be a '1 click' startup solution, and having everything ready for production, (using custom JS for automation)
I'll be using Vingester tonight (which will fail no doubt), but I'll try to keep at least one of captures (that doesn't need the JS automation) using elecap to see if it works better as-is, in the hopes of providing better feedback.
I have a test version that adds --js="test.js" as a command line option, as well as a way to inject via the context menu.
https://github.com/steveseguin/electroncapture/releases/download/2.19.1/elecap_win_v2.19.6_installer.zip https://github.com/steveseguin/electroncapture/releases/download/2.19.1/elecap_win_v2.19.6_portable.zip
The screensharing is broke in this version, so consider it a custom version for now.