Пример #1
0
 public void UnInitialize()
 {
     if (this.Initialized)
     {
         VideoPlugin.ShutdownPlugin();
     }
 }
Пример #2
0
 public void Show(bool visible)
 {
     if (!this.Initialized)
     {
         this.Initialize(1);
     }
     VideoPlugin.SetVisible(visible);
 }
Пример #3
0
 public void StopConference()
 {
     if (this.Initialized)
     {
         VideoPlugin.Disconnect();
         this.Connected = false;
         VideoPlugin.SetVisible(false);
     }
 }
Пример #4
0
 public void StopConference()
 {
     if (mShutdown)
     {
         return;
     }
     if (this.Initialized)
     {
         VideoPlugin.PluginDisconnect();
         this.Connected = false;
         this.UnInitialize();
     }
 }
Пример #5
0
 public void UnInitialize()
 {
     if (this.Connected)
     {
         this.StopConference();
     }
     if (this.Initialized)
     {
         VideoPlugin.SetVisible(false);
         //    VideoPlugin.ShutdownPlugin();
         //  this.Initialized = false;
         OnVideoPluginExit(this, new EventArgs());
     }
     mShutdown = false;
 }
Пример #6
0
        public void StartConference(bool bConnected, UInt32 dwNetworkUpstreamBandwidth,
                                    UInt32 dwNetworkDownstreamBandwidth, UInt32 dwReservedBandwidth,
                                    string address, bool bRemoteBehindFirewall, bool bAsymetricFlag,
                                    string conferenceID,
                                    string userID, string jabberID)
        {
            if (!this.Initialized)
            {
                this.Initialize(1);
            }

            if (this.Connected)
            {
                this.StopConference();
            }

            VideoPlugin.Connect(bConnected, dwNetworkUpstreamBandwidth,
                                dwNetworkDownstreamBandwidth, dwReservedBandwidth,
                                address, bRemoteBehindFirewall, bAsymetricFlag, conferenceID, userID);
            this.JabberID  = jabberID;
            this.Connected = true;
        }
Пример #7
0
        public void StartConference(bool bConnected, UInt32 dwNetworkUpstreamBandwidth, UInt32 dwNetworkDownstreamBandwidth, UInt32 dwReservedBandwidth, string address, bool bRemoteBehindFirewall, bool bAsymetricFlag, string conferenceID, string userID, string jabberID)
        {
            if (mShutdown)
            {
                return;
            }

            if (!this.Initialized)
            {
                this.Initialize(1);
            }

            if (this.Connected)
            {
                this.StopConference();
            }

            VideoPlugin.PluginConnect(bConnected, dwNetworkUpstreamBandwidth, dwNetworkDownstreamBandwidth, dwReservedBandwidth, address, bRemoteBehindFirewall, bAsymetricFlag, conferenceID, userID, false, false, mTitle);
            VideoPlugin.SetPlaying(true);
            this.JabberID  = jabberID;
            this.Connected = true;
            VideoPlugin.SetVisible(true);
        }
Пример #8
0
        public UInt32 BoolCallbackFunction(Int32 idNumber, VideoPlugin.EventMessage msg, IntPtr evtSenderHwnd)
        {
            mShutdown = true;

            ThreadStart st = new ThreadStart(ShutdownThreadFunction);
            mShutdownThread = new Thread(st);
            mShutdownThread.Start();
 
            return 1;
        }