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

How to send window id from another application to this plugin? #3

Open
alokmahor opened this issue Sep 18, 2021 · 4 comments
Open

How to send window id from another application to this plugin? #3

alokmahor opened this issue Sep 18, 2021 · 4 comments

Comments

@alokmahor
Copy link

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 send windowId.

I want to send windowId from my electron.js based application. There would be way using IPC(Inter Process Communication).

How can I send windowId to this plugin?

@knightbenax
Copy link
Owner

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

@alokmahor
Copy link
Author

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

@knightbenax
Copy link
Owner

knightbenax commented Sep 28, 2021

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

@alokmahor
Copy link
Author

Yes if I get any IPC based solution I will create pull request

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