SimpleDALPlugin icon indicating copy to clipboard operation
SimpleDALPlugin copied to clipboard

How to send a stream from an other application into the plugin

Open maxencedouet opened this issue 3 years ago • 9 comments

Hello Ryohei,

First, thank you very much for this simple exemple simply customisable.

I would love to use this plugin in an other application in order to be able to send stream into it. (node best but swift app ok)

Do you know how I could do ?

Thank you very much for your help

Maxence

maxencedouet avatar Sep 29 '20 21:09 maxencedouet

I've similar question. I know that we have to use some IPC to do it. but my question is how xpc will deliver the frames received from the app to the plugin ?

sivrish avatar Oct 06 '20 13:10 sivrish

What I ended up doing was capturing a NSWindow from inside the Plugin, at an interval. That's because my application needed to send the contents of a NSWindow opened on the desktop in an accompanying Mac OS app. Note that this window being captured by the plugin needs not be visible: so you could do all your composition in this "hidden" NSWindow, and your plugin would still be able to capture its bitmap.

ldenoue avatar Oct 06 '20 16:10 ldenoue

@sivrish: May be this will be helpful https://github.com/PhilippMatthes/neural-greenscreen

Raj123456788 avatar Oct 06 '20 16:10 Raj123456788

@Raj123456788 thanks, but I want to implement something like SnapChat did on their Snap Camera. They used XPC to communicate between the App and the plugin. But I'm confused on how to create a connection using that.

sivrish avatar Oct 06 '20 16:10 sivrish

@sivrish: Is there a repository where I can look into your code? I was trying the same but never got a headway. See if this helps: https://github.com/zakk4223/CSVirtualCamera/issues/3

Raj123456788 avatar Oct 07 '20 15:10 Raj123456788

@Raj123456788 have you implemented the vcam successfully ?

sivrish avatar Feb 04 '21 11:02 sivrish

Hi @sivrish : I followed https://github.com/knightbenax/Cobalt and it works.

Raj123456788 avatar Feb 11 '21 18:02 Raj123456788

That's a great news! @Raj123456788 Can you DM me on twitter @sivrish and I have to ask few details about vcam instead of me spamming the issue section here ?

sivrish avatar Feb 11 '21 19:02 sivrish

How do I add a microphone?

adamgf avatar Nov 01 '21 07:11 adamgf