mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 11:38:11 +08:00
完成AAC RTMP编解码类
This commit is contained in:
@@ -126,7 +126,7 @@ void RtspToRtmpMediaSource::onGetH264(const H264Frame& frame) {
|
||||
rtmpPkt->typeId = MSG_VIDEO;
|
||||
m_pRtmpSrc->onGetMedia(rtmpPkt);
|
||||
}
|
||||
void RtspToRtmpMediaSource::onGetAdts(const AACFrame& frame) {
|
||||
void RtspToRtmpMediaSource::onGetAAC(const AACFrame& frame) {
|
||||
if(m_pRecorder){
|
||||
m_pRecorder->inputAAC((char *) frame.buffer, frame.aac_frame_length, frame.timeStamp);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
m_pParser.reset(new RtpParser(strSdp));
|
||||
m_pRecorder.reset(new MediaRecorder(getVhost(),getApp(),getId(),m_pParser,m_bEnableHls,m_bEnableMp4));
|
||||
//todo(xzl) 修复此处
|
||||
// m_pParser->setOnAudioCB( std::bind(&RtspToRtmpMediaSource::onGetAdts, this, placeholders::_1));
|
||||
// m_pParser->setOnAudioCB( std::bind(&RtspToRtmpMediaSource::onGetAAC, this, placeholders::_1));
|
||||
// m_pParser->setOnVideoCB( std::bind(&RtspToRtmpMediaSource::onGetH264, this, placeholders::_1));
|
||||
makeMetaData();
|
||||
} catch (exception &ex) {
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
|
||||
protected:
|
||||
void onGetH264(const H264Frame &frame);
|
||||
void onGetAdts(const AACFrame &frame);
|
||||
void onGetAAC(const AACFrame &frame);
|
||||
private:
|
||||
void makeVideoConfigPkt();
|
||||
void makeAudioConfigPkt();
|
||||
|
||||
Reference in New Issue
Block a user