static void media_info_cb(IntPtr gcc, int width, int height, int par_n, int par_d) { try { GstCameraCapturer gcc_managed = GLib.Object.GetObject(gcc, false) as GstCameraCapturer; gcc_managed.OnMediaInfo(width, height, par_n, par_d); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void device_change_cb(IntPtr gcc, int deviceChange) { try { GstCameraCapturer gcc_managed = GLib.Object.GetObject(gcc, false) as GstCameraCapturer; gcc_managed.OnDeviceChange(deviceChange); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void eos_cb(IntPtr gcc) { try { GstCameraCapturer gcc_managed = GLib.Object.GetObject(gcc, false) as GstCameraCapturer; gcc_managed.OnEos(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void error_cb(IntPtr gcc, IntPtr message) { try { GstCameraCapturer gcc_managed = GLib.Object.GetObject(gcc, false) as GstCameraCapturer; gcc_managed.OnError(GLib.Marshaller.Utf8PtrToString(message)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }