Exemplo n.º 1
0
        internal static VideoFrameSizeChangedEvent FromNative(
            ADLVideoFrameSizeChangedEvent vidFrameSizeChangedEvent)
        {
            VideoFrameSizeChangedEvent result =
                new VideoFrameSizeChangedEvent();

            result._sinkId = vidFrameSizeChangedEvent.sinkId.body;
            result._width  = vidFrameSizeChangedEvent.width;
            result._height = vidFrameSizeChangedEvent.height;
            return(result);
        }
Exemplo n.º 2
0
        // CDOServiceListener callback handlers

        private void on_video_frame_size_changed_callback_t(IntPtr opaque,
                                                            ref ADLVideoFrameSizeChangedEvent e)
        {
            try
            {
                if (_listener != null)
                {
                    _listener.onVideoFrameSizeChanged(
                        VideoFrameSizeChangedEvent.FromNative(e));
                }
            }
            catch (Exception)
            {
            }
        }
 // CDOServiceListener callback handlers
 private void on_video_frame_size_changed_callback_t(IntPtr opaque,
     ref ADLVideoFrameSizeChangedEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onVideoFrameSizeChanged(
                 VideoFrameSizeChangedEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
 internal static VideoFrameSizeChangedEvent FromNative(
     ADLVideoFrameSizeChangedEvent vidFrameSizeChangedEvent)
 {
     VideoFrameSizeChangedEvent result =
         new VideoFrameSizeChangedEvent();
     result._sinkId = vidFrameSizeChangedEvent.sinkId.body;
     result._width = vidFrameSizeChangedEvent.width;
     result._height = vidFrameSizeChangedEvent.height;
     return result;
 }