示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 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);
     }
 }