/// <summary> /// 数据流回调 /// </summary> /// <param name="_channelId">The _channel identifier.</param> /// <param name="_channelPtr">The _channel PTR.</param> /// <param name="_frameType">Type of the _frame.</param> /// <param name="pBuf">The p buf.</param> /// <param name="_frameInfo">The _frame information.</param> /// <returns>System.Int32.</returns> private int MediaCallback(int _channelId, IntPtr _channelPtr, int _frameType, IntPtr pBuf, ref PlayerSdk.EASY_FRAME_INFO _frameInfo) { if (1 == _frameType) { //get _frameInfo.width and _frameInfo.height; } return(0); }
/// <summary> /// 数据流回调 /// </summary> /// <param name="_channelId">The _channel identifier.</param> /// <param name="_channelPtr">The _channel PTR.</param> /// <param name="_frameType">Type of the _frame.</param> /// <param name="pBuf">The p buf.</param> /// <param name="_frameInfo">The _frame information.</param> /// <returns>System.Int32.</returns> private int MediaCallback(int _channelId, IntPtr _channelPtr, int _frameType, IntPtr pBuf, ref PlayerSdk.EASY_FRAME_INFO _frameInfo) { return(0); }