- Posts: 190
- Joined: Wed Jan 13, 2016 11:31 pm
Hi Mike,
Remove reference to your IBMDSwitcher and related interfaces by assigning to null in C#, or call IUnknown::Release() in C++. Also remove any registered callbacks, so to release references in owner interface objects.
The disconnect will often be as result of action within your application. To handle disconnect due to external event (for instance, switcher is disconnected from network), you should implement IBMDSwitcherCallback callback interface, and within IBMDSwitcherCallback::Notify filter for event type bmdSwitcherEventTypeDisconnected.[1][2]. Register the callback by calling IBMDSwitcher::AddCallback[3].
Regards
Cameron
References (Switchers SDK Manual):
[1] 2.3.3.1 IBMDSwitcherCallback::Notify method
[2] 2.2.2 Switcher Event Type
[3] 2.3.2.31 IBMDSwitcher::AddCallback method