mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 19:58:10 +08:00
注释,说明
注释,说明
This commit is contained in:
@@ -39,7 +39,7 @@ RtspMuxer::RtspMuxer(const TitleSdp::Ptr &title){
|
||||
}
|
||||
|
||||
void RtspMuxer::onTrackReady(const Track::Ptr &track) {
|
||||
//根据track生产sdp
|
||||
//根据track生成sdp
|
||||
Sdp::Ptr sdp = track->getSdp();
|
||||
if (!sdp) {
|
||||
return;
|
||||
|
||||
@@ -46,7 +46,7 @@ using namespace toolkit;
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
//实现了rtsp播放器协议部分的功能
|
||||
//实现了rtsp播放器协议部分的功能,及数据接收功能
|
||||
class RtspPlayer: public PlayerBase,public TcpClient, public RtspSplitter, public RtpReceiver {
|
||||
public:
|
||||
typedef std::shared_ptr<RtspPlayer> Ptr;
|
||||
|
||||
@@ -361,10 +361,11 @@ void RtspSession::onAuthSuccess() {
|
||||
strongSelf->shutdown(SockException(Err_shutdown,err));
|
||||
return;
|
||||
}
|
||||
//找到了响应的rtsp流
|
||||
//找到了相应的rtsp流
|
||||
strongSelf->_aTrackInfo = SdpParser(rtsp_src->getSdp()).getAvailableTrack();
|
||||
if (strongSelf->_aTrackInfo.empty()) {
|
||||
//该流无效
|
||||
DebugL << "无trackInfo,该流无效";
|
||||
strongSelf->send_StreamNotFound();
|
||||
strongSelf->shutdown(SockException(Err_shutdown,"can not find any availabe track in sdp"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user