示例#1
0
        private void FHelloCXP_Load(object sender, System.EventArgs e)
        {
            // ConferenceAPI to autoplay any incoming streams
            Conference.AutoPlayLocal  = true;
            Conference.AutoPlayRemote = true;

            // Tell ConferenceApi who the calling form is so it knows how to send events to the form on the correct thread
            Conference.CallingForm = this;

            // ConferenceAPI to autoposition any new windows
            Conference.AutoPosition = Conference.AutoPositionMode.Tiled;

            // Don't connect to a Venue Service; create a local venue and join it.
            Conference.VenueServiceWrapper.VenueServiceUrl = null;
            Venue localVenue = Conference.VenueServiceWrapper.CreateRandomMulticastVenue("Local Venue", null);

            Conference.JoinVenue(localVenue);

            // Send audio and video streams
            FilterInfo[] cameras = VideoSource.Sources();

            if (cameras.Length > 0)
            {
                VideoCapability vc = new VideoCapability(cameras[0]);
                vc.ActivateCamera();
                vc.Send();
            }
        }
示例#2
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (lstItems.SelectedItems.Count > 0)
     {
         m_selectedCap = lstItems.SelectedItems[0].Tag as VideoCapability;
     }
 }
示例#3
0
        private void btnSetCapabilities_Click(object sender, EventArgs e)
        {
            if (OnGetVideoCapabilities != null)
            {
                Filter filter = listView1.SelectedItems[0].Tag as Filter;
                VideoCapabilityCollection colCap = m_webCam.GetVideoCapatiblities(filter);
                GetVideoCapabilitiesArgs  args   = new GetVideoCapabilitiesArgs(colCap);

                OnGetVideoCapabilities(this, args);
                m_selectedVideoCaps = args.SelectedVideoCapability;
            }
        }