Ejemplo n.º 1
0
        /// <summary>
        /// Attempts to create an instance of the BroadcasterPlugin class. If XSplit is not installed, null is returned.
        /// </summary>
        /// <param name="connectionUID">
        /// Unique ID to apply to this application, should match the accompanying .xbs file.
        /// </param>
        /// <returns>
        /// Returns an instance of BroadcasterPlugin if XSplit is installed on the system, else null is returned.
        /// </returns>
        public static BroadcasterPlugin CreateInstance(string connectionUID)
        {
            BroadcasterPlugin plugin = null;

            try
            {
                var extsrc = new VHCOMRenderEngineExtSrc2 {
                    ConnectionUID = connectionUID
                };
                plugin = new BroadcasterPlugin(extsrc);
            }
            catch (COMException)
            {
                // Do nothing, the plugin failed to load so null will be returned.
            }

            return(plugin);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Attempts to create an instance of the BroadcasterPlugin class. If XSplit is not installed, null is returned.
        /// </summary>
        /// <param name="connectionUID">
        /// Unique ID to apply to this application, should match the accompanying .xbs file.
        /// </param>
        /// <returns>
        /// Returns an instance of BroadcasterPlugin if XSplit is installed on the system, else null is returned.
        /// </returns>
        public static BroadcasterPlugin CreateInstance(string connectionUID)
        {
            BroadcasterPlugin plugin = null;

            try
            {
                var extsrc = new VHCOMRenderEngineExtSrc2 { ConnectionUID = connectionUID };
                plugin = new BroadcasterPlugin(extsrc);
            }
            catch (COMException)
            {
                // Do nothing, the plugin failed to load so null will be returned.
            }

            return plugin;
        }