打印codec信息时,打印url信息

This commit is contained in:
ziyue 2021-08-05 14:49:52 +08:00
parent f833bfb031
commit 018fa40946
3 changed files with 2 additions and 3 deletions

View File

@ -286,7 +286,7 @@ void MultiMediaSourceMuxer::onAllTrackReady() {
if (listener) { if (listener) {
listener->onAllTrackReady(); listener->onAllTrackReady();
} }
InfoL << "stream: " << _stream_url << " , codec info: " << getTrackInfoStr(this); InfoL << "stream: " << getOriginUrl(*MediaSource::NullMediaSource) << " , codec info: " << getTrackInfoStr(this);
} }
void MultiMediaSourceMuxer::resetTracks() { void MultiMediaSourceMuxer::resetTracks() {

View File

@ -142,7 +142,6 @@ protected:
private: private:
bool _is_enable = false; bool _is_enable = false;
string _stream_url;
Ticker _last_check; Ticker _last_check;
Stamp _stamp[2]; Stamp _stamp[2];
std::weak_ptr<Listener> _track_listener; std::weak_ptr<Listener> _track_listener;

View File

@ -968,7 +968,7 @@ MediaOriginType WebRtcTransportImp::getOriginType(MediaSource &sender) const {
} }
string WebRtcTransportImp::getOriginUrl(MediaSource &sender) const { string WebRtcTransportImp::getOriginUrl(MediaSource &sender) const {
return ""; return _media_info._full_url;
} }
std::shared_ptr<SockInfo> WebRtcTransportImp::getOriginSock(MediaSource &sender) const { std::shared_ptr<SockInfo> WebRtcTransportImp::getOriginSock(MediaSource &sender) const {