Open alokmahor opened 2 years ago
Hi @alokmahor. windowId
isn't coming from a web application, it's coming from the macOS companion app. I am spinning up a local http server to send the id because I couldn't find enough documentation on how to make the IPC work in the timeline that I needed it done
OBS mac-virtualcam is using NSMachBootstrapServer
and will plan to use NSXPCConnection
according to https://github.com/obsproject/obs-studio/blob/master/plugins/mac-virtualcam/src/obs-plugin/OBSDALMachServer.mm
so I guess we have to use XPC
That makes sense. I would find some time to play around with XPC and implement it here, that should definitely be faster. Also if you do manage to get it work, you could make a PR or share
Yes if I get any IPC based solution I will create pull request
Thanks for creating this sample plugin. This plugin is recieving
windowId
from web application.I do not want to use
http server
based approach to sendwindowId
.I want to send
windowId
from myelectron.js based application
. There would be way usingIPC(Inter Process Communication)
.How can I send
windowId
to this plugin?