johnboiles / coremediaio-dal-minimal-example

Intended to be the most minimalistic example of a macOS CoreMediaIO DAL plugin.
MIT License
211 stars 31 forks source link

How to send windowID from a application to this DAL plugin for window capturing? #27

Closed alokmahor closed 2 years ago

alokmahor commented 2 years ago

Currently this DAL plugin output moving square. I want to output any specific window capture so I want to send windowID from a application. I need to use IPC(Inter Process Communication) to pass windowID to DAL plugin.

But I am not sure which IPC approach should I use for such one way communication from application to DAL plugin.

johnboiles commented 2 years ago

You can use the deprecated distributed objects ipc method (this is what OBS does). This can work directly from the host application to the DAL plugin.

Or you can use XPC, but for XPC you'll need a LaunchAgent that passes messages between the two processes.

I've used both. XPC is not deprecated so probably the best for new projects.