Connecting to an ATEM Switcher via C# (Multiplatform)
So, I am trying to invoke some disconnection logic, in order to access COM ports. The SDK says it is possible to connect on other platforms but it seems to be proving difficult.
Here is the code I'm using atm from the
ATEMConnect.cs
file
Marshal.GetObjectForIUnknown(switcherPtr)
is proving to be the problem as it says in the IDE it is Windows only, but I aren't sure what the equivalent is. I asked in #chat about P/Invoke but I'd still likely need to use something like that even with P/Invoke. I'm not sure how I can get this to access on Mac.4 Replies
you should be able to pretty much copy the code from the manual/pdf in the sdk, does their program connect successfully to the switcher?
Their program is either Windows only in C#, or their cross-platform examples are pure C++
yes, but as a test, because you have to have the same version of the client installed in the pc and the stuff installed in the switcher itself
also in my project i don't really import apis manually, i imported the reference
(and i really have to 🛌 )
No worries. I'll see if I can figure anything out from that. Thank you for the help!
Also, I see what you meant by that now. Sorry for the confusion. Yes the example programs do connect successfully (well, most of them anyway)