mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
添加注释
This commit is contained in:
parent
5ae154642c
commit
458d9f7bc0
@ -19,12 +19,19 @@ namespace mediakit{
|
||||
|
||||
class Factory {
|
||||
public:
|
||||
|
||||
/**
|
||||
* 根据CodecId获取Track,该Track的ready()状态一般都为false
|
||||
* @param codecId 编解码器id
|
||||
* @return
|
||||
*/
|
||||
static Track::Ptr getTrackByCodecId(CodecId codecId);
|
||||
|
||||
////////////////////////////////rtsp相关//////////////////////////////////
|
||||
/**
|
||||
* 根据sdp生成Track对象
|
||||
*/
|
||||
static Track::Ptr getTrackBySdp(const string &sdp);
|
||||
static Track::Ptr getTrackByCodecId(CodecId codecId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据Track生成SDP对象
|
||||
@ -60,13 +67,48 @@ public:
|
||||
static RtpCodec::Ptr getRtpDecoderById(CodecId codecId, uint32_t ui32SampleRate);
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////rtmp相关//////////////////////////////////
|
||||
|
||||
/**
|
||||
* 根据amf对象获取响应的Track
|
||||
* @param amf rtmp metedata中的videocodecid或audiocodecid的值
|
||||
* @return
|
||||
*/
|
||||
static Track::Ptr getTrackByAmf(const AMFValue &amf);
|
||||
|
||||
/**
|
||||
* 根据amf对象获取相应的CodecId
|
||||
* @param val rtmp metedata中的videocodecid或audiocodecid的值
|
||||
* @return
|
||||
*/
|
||||
static CodecId getCodecIdByAmf(const AMFValue &val);
|
||||
|
||||
/**
|
||||
* 根据CodecId获取Rtmp的编解码器
|
||||
* @param codecId CodecId
|
||||
* @return
|
||||
*/
|
||||
static RtmpCodec::Ptr getRtmpCodecById(CodecId codecId);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}//namespace mediakit
|
||||
|
||||
#endif //ZLMEDIAKIT_FACTORY_H
|
||||
|
Loading…
Reference in New Issue
Block a user