mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 07:12:21 +08:00
初步完成Rtp解包
This commit is contained in:
@@ -87,8 +87,7 @@ public:
|
||||
virtual float getRtpLossRate(int trackType) const {return 0; }
|
||||
virtual float getDuration() const { return 0;}
|
||||
|
||||
virtual int getTrackCount() const { return 0;}
|
||||
virtual Track::Ptr getTrack(int index) const {return nullptr;}
|
||||
virtual vector<Track::Ptr> getTracks() const { return vector<Track::Ptr>();}
|
||||
protected:
|
||||
virtual void onShutdown(const SockException &ex) {}
|
||||
virtual void onPlayResult(const SockException &ex) {}
|
||||
@@ -146,18 +145,12 @@ public:
|
||||
m_pMediaSrc = src;
|
||||
}
|
||||
|
||||
virtual int getTrackCount() const override{
|
||||
if (m_parser) {
|
||||
return m_parser->getTrackCount();
|
||||
}
|
||||
return PlayerBase::getTrackCount();
|
||||
}
|
||||
virtual Track::Ptr getTrack(int index) const override{
|
||||
if (m_parser) {
|
||||
return m_parser->getTrack(index);
|
||||
}
|
||||
return PlayerBase::getTrack(index);
|
||||
}
|
||||
vector<Track::Ptr> getTracks() const override{
|
||||
if (m_parser) {
|
||||
return m_parser->getTracks();
|
||||
}
|
||||
return PlayerBase::getTracks();
|
||||
}
|
||||
protected:
|
||||
void onShutdown(const SockException &ex) override {
|
||||
if (m_shutdownCB) {
|
||||
|
||||
Reference in New Issue
Block a user