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 a stream from an other application into the plugin #9

Open
maxencedouet opened this issue Sep 29, 2020 · 9 comments
Open

Comments

@maxencedouet
Copy link

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

@sivrish
Copy link

sivrish commented Oct 6, 2020

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 ?

@ldenoue
Copy link

ldenoue commented Oct 6, 2020

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.

@Raj123456788
Copy link

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

@sivrish
Copy link

sivrish commented Oct 6, 2020

@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.

@Raj123456788
Copy link

@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: zakk4223/CSVirtualCamera#3

@sivrish
Copy link

sivrish commented Feb 4, 2021

@Raj123456788 have you implemented the vcam successfully ?

@Raj123456788
Copy link

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

@sivrish
Copy link

sivrish commented Feb 11, 2021

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 ?

@adamgf
Copy link

adamgf commented Nov 1, 2021

How do I add a microphone?

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

5 participants