/// <summary>
 /// 设置音视频数据回调函数
 /// </summary>
 /// <param name="ctx">播放器指针</param>
 /// <param name="cb">回调函数指针,设置null立即取消回调</param>
 /// <param name="user_data">用户数据指针</param>
 public static void mk_player_set_on_data(System.IntPtr ctx, on_mk_play_data cb, System.IntPtr user_data)
 {
     if (LibraryConst.IsWindows)
     {
         mk_player_windows.mk_player_set_on_data(ctx, cb, user_data);
     }
     else
     {
         mk_player_unix.mk_player_set_on_data(ctx, cb, user_data);
     }
 }
 internal static extern void mk_player_set_on_data(IntPtr mk_player, on_mk_play_data callback, IntPtr user_data);
 internal static extern void mk_player_set_on_data(System.IntPtr ctx, on_mk_play_data cb, System.IntPtr user_data);
Example #4
0
 public static extern void mk_player_set_on_data(IntPtr ctx, on_mk_play_data cb, ref Context user_data);