/// <summary>
 /// 推送H264或AAC流
 /// </summary>
 /// <param name="frame"> 帧信息 </param>
 /// <returns></returns>
 public KeyValuePair <bool, string> SendPacket(EASY_AV_Frame frame)
 {
     if (!this.IsInit)
     {
         return(new KeyValuePair <bool, string>(false, "RTMP 未创建!"));
     }
     try
     {
         int ret = EasyRTMP_SendPacket(this.RtmpHandle, frame);
         if (ret != 0)
         {
             return(new KeyValuePair <bool, string>(false, string.Format("RTMP 发送数据包失败,错误代码:{0}", ret)));
         }
         else
         {
             return(new KeyValuePair <bool, string>(true, "发送流媒体数据包成功!"));
         }
     }
     catch (System.Exception e)
     {
         return(new KeyValuePair <bool, string>(false, string.Format("RTMP 发送数据包失败,异常消息:{0}", e.Message)));
     }
 }
 private extern static int EasyRTMP_SendPacket(IntPtr handle, EASY_AV_Frame frame);
 public static extern uint EasyPusher_PushFrame(System.IntPtr handle, ref EASY_AV_Frame frame);