static void tick_cb(IntPtr bvw, long current_time, long stream_length, double current_position) { try { GstVideoPlayer bvw_managed = GLib.Object.GetObject(bvw, false) as GstVideoPlayer; bvw_managed.OnTick(current_time, stream_length, current_position); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void eos_cb(IntPtr bvw) { try { GstVideoPlayer bvw_managed = GLib.Object.GetObject(bvw, false) as GstVideoPlayer; bvw_managed.OnEos(); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void error_cb(IntPtr bvw, IntPtr message) { try { GstVideoPlayer bvw_managed = GLib.Object.GetObject(bvw, false) as GstVideoPlayer; bvw_managed.OnError(GLib.Marshaller.Utf8PtrToString(message)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }
static void statechange_cb(IntPtr bvw, bool playing) { try { GstVideoPlayer bvw_managed = GLib.Object.GetObject(bvw, false) as GstVideoPlayer; bvw_managed.OnStateChange(playing); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }