Ejemplo n.º 1
0
 /// <summary>
 /// 设置播放被异常中断的回调
 /// </summary>
 /// <param name="ctx">播放器指针</param>
 /// <param name="cb">回调函数指针,设置null立即取消回调</param>
 /// <param name="user_data">用户数据指针</param>
 public static void mk_player_set_on_shutdown(System.IntPtr ctx, on_mk_play_event cb, System.IntPtr user_data)
 {
     if (LibraryConst.IsWindows)
     {
         mk_player_windows.mk_player_set_on_shutdown(ctx, cb, user_data);
     }
     else
     {
         mk_player_unix.mk_player_set_on_shutdown(ctx, cb, user_data);
     }
 }
Ejemplo n.º 2
0
 internal static extern void mk_player_set_on_result(IntPtr mk_player, on_mk_play_event callback, IntPtr user_data);
Ejemplo n.º 3
0
 internal static extern void mk_player_set_on_shutdown(System.IntPtr ctx, on_mk_play_event cb, System.IntPtr user_data);
Ejemplo n.º 4
0
 public static extern void mk_player_set_on_shutdown(IntPtr ctx, on_mk_play_event cb, ref Context user_data);