Exemplo n.º 1
0
        /**
         * Constructors
         * =====================================================================
         */

        /// <summary>
        /// Basic constructor.
        /// </summary>
        /// <param name="platformHnandle">
        /// handle for the platform that should be used when performing API
        /// calls.
        /// </param>
        public CloudeoServiceImpl(IntPtr platformHandle)
        {
            // 1. Initialize all fields.
            _platformHandle       = platformHandle;
            _respondersDictionary = new Dictionary <uint, object>();
            _listeners            = new List <NativeServiceListenerAdapter>();
            _callIdGenerator      = 0;
            _renderSupport        = new RenderSupport(platformHandle);

            // 2. Create all the result delegates.
            _voidRCallback         = new adl_void_rclbck_t(voidRCallback);
            _stringRCallback       = new adl_string_rclbck_t(stringRCallback);
            _intRCallback          = new adl_int_rclbck_t(intRCallback);
            _devsRCallback         = new adl_get_device_names_rclbck_t(devsRCallback);
            _screenSourceRCallback =
                new adl_get_screen_capture_srcs_rclbck_t(screenCaptureSourcesRClbck);
        }
 public static extern void adl_start_local_video(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_get_video_capture_device(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_get_version(
     adl_string_rclbck_t resultHandler, ADLH handle, IntPtr opaque);
 public static extern void adl_get_audio_output_device(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_start_local_video(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_get_audio_output_device(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_get_video_capture_device(
     adl_string_rclbck_t rclbck, ADLH handle, IntPtr opaque);
 public static extern void adl_get_version(
     adl_string_rclbck_t resultHandler, ADLH handle, IntPtr opaque);