mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
添加媒体生成源信息
This commit is contained in:
@@ -112,6 +112,7 @@ void PlayerProxy::play(const string &strUrlTmp) {
|
||||
}
|
||||
});
|
||||
MediaPlayer::play(strUrlTmp);
|
||||
_pull_url = strUrlTmp;
|
||||
|
||||
MediaSource::Ptr mediaSource;
|
||||
if(dynamic_pointer_cast<RtspPlayer>(_delegate)){
|
||||
@@ -180,6 +181,18 @@ int PlayerProxy::totalReaderCount(MediaSource &sender) {
|
||||
return totalReaderCount();
|
||||
}
|
||||
|
||||
MediaOriginType PlayerProxy::getOriginType(MediaSource &sender) const{
|
||||
return MediaOriginType::pull;
|
||||
}
|
||||
|
||||
string PlayerProxy::getOriginUrl(MediaSource &sender) const{
|
||||
return _pull_url;
|
||||
}
|
||||
|
||||
std::shared_ptr<SockInfo> PlayerProxy::getOriginSock(MediaSource &sender) const{
|
||||
return getSockInfo();
|
||||
}
|
||||
|
||||
class MuteAudioMaker : public FrameDispatcher{
|
||||
public:
|
||||
typedef std::shared_ptr<MuteAudioMaker> Ptr;
|
||||
|
||||
Reference in New Issue
Block a user