/* RTSPClient获取数据后回调给上层 */ int Easy_APICALL __RTSPClientCallBack( int _chid, int *_chPtr, int _mediatype, char *pbuf, RTSP_FRAME_INFO *frameinfo) { EasyHLSSession* pHLSSession = (EasyHLSSession *)_chPtr; if (NULL == pHLSSession) return -1; //投递到具体对应的EasyHLSSession进行处理 pHLSSession->ProcessData(_chid, _mediatype, pbuf, frameinfo); return 0; }