예제 #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;
        }