注释,说明

注释,说明
This commit is contained in:
3503207480@qq.com
2019-08-30 11:17:27 +08:00
parent e3139134e8
commit 036b36f012
12 changed files with 37 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;