Пример #1
0
        IBMDSwitcherKey GetSwitcherKey1(IBMDSwitcherMixEffectBlock block)
        {
            IBMDSwitcherKeyIterator meIterator = null;
            IntPtr meIteratorPtr;
            Guid   meIteratorIID = typeof(IBMDSwitcherKeyIterator).GUID;

            block.CreateIterator(ref meIteratorIID, out meIteratorPtr);
            if (meIteratorPtr != null)
            {
                meIterator = (IBMDSwitcherKeyIterator)Marshal.GetObjectForIUnknown(meIteratorPtr);
            }

            if (meIterator == null)
            {
                return(null);
            }

            IBMDSwitcherKey temp = null;

            if (meIterator != null)
            {
                meIterator.Next(out temp);
            }

            return(temp);
        }