mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-24 18:22:20 +08:00
增加rtmp/rtsp对音频G711A,G711U的支持
This commit is contained in:
@@ -56,11 +56,18 @@ public:
|
||||
////////////////////////////////rtmp相关//////////////////////////////////
|
||||
|
||||
/**
|
||||
* 根据amf对象获取响应的Track
|
||||
* @param amf rtmp metadata中的videocodecid或audiocodecid的值
|
||||
* 根据amf对象获取视频相应的Track
|
||||
* @param amf rtmp metadata中的videocodecid的值
|
||||
* @return
|
||||
*/
|
||||
static Track::Ptr getTrackByAmf(const AMFValue &amf);
|
||||
static Track::Ptr getVideoTrackByAmf(const AMFValue &amf);
|
||||
|
||||
/**
|
||||
* 根据amf对象获取音频相应的Track
|
||||
* @param amf rtmp metadata中的audiocodecid的值
|
||||
* @return
|
||||
*/
|
||||
static Track::Ptr getAudioTrackByAmf(const AMFValue& amf);
|
||||
|
||||
/**
|
||||
* 根据amf对象获取相应的CodecId
|
||||
@@ -69,6 +76,13 @@ public:
|
||||
*/
|
||||
static CodecId getCodecIdByAmf(const AMFValue &val);
|
||||
|
||||
/**
|
||||
* 根据amf对象获取音频相应的CodecId
|
||||
* @param val rtmp metadata中的audiocodecid的值
|
||||
* @return
|
||||
*/
|
||||
static CodecId getAudioCodecIdByAmf(const AMFValue& val);
|
||||
|
||||
/**
|
||||
* 根据Track获取Rtmp的编解码器
|
||||
* @param track 媒体描述对象
|
||||
|
||||
Reference in New Issue
Block a user