mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
修复拼写错误
This commit is contained in:
parent
c5f1b4cd52
commit
dd2abd7924
@ -37,7 +37,7 @@ void MediaPlayer::play(const string &url) {
|
||||
_delegate->setOnShutdown(_shutdownCB);
|
||||
_delegate->setOnPlayResult(_playResultCB);
|
||||
_delegate->setOnResume(_resumeCB);
|
||||
_delegate->setMediaSouce(_pMediaSrc);
|
||||
_delegate->setMediaSource(_pMediaSrc);
|
||||
_delegate->mINI::operator=(*this);
|
||||
_delegate->play(url);
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
* 设置一个MediaSource,直接生产rtsp/rtmp代理
|
||||
* @param src
|
||||
*/
|
||||
virtual void setMediaSouce(const MediaSource::Ptr & src) {}
|
||||
virtual void setMediaSource(const MediaSource::Ptr & src) {}
|
||||
|
||||
/**
|
||||
* 获取丢包率,只支持rtsp
|
||||
@ -181,9 +181,9 @@ public:
|
||||
return Parent::seekTo(fProgress);
|
||||
}
|
||||
|
||||
void setMediaSouce(const MediaSource::Ptr & src) override {
|
||||
void setMediaSource(const MediaSource::Ptr & src) override {
|
||||
if (_delegate) {
|
||||
_delegate->setMediaSouce(src);
|
||||
_delegate->setMediaSource(src);
|
||||
}
|
||||
_pMediaSrc = src;
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ void PlayerProxy::play(const string &strUrlTmp) {
|
||||
mediaSource = std::make_shared<RtmpMediaSource>(_vhost, _app, _stream_id);
|
||||
}
|
||||
if(mediaSource){
|
||||
setMediaSouce(mediaSource);
|
||||
setMediaSource(mediaSource);
|
||||
mediaSource->setListener(shared_from_this());
|
||||
}
|
||||
}
|
||||
@ -163,7 +163,7 @@ bool PlayerProxy::close(MediaSource &sender,bool force) {
|
||||
return;
|
||||
}
|
||||
strongSelf->_muxer.reset();
|
||||
strongSelf->setMediaSouce(nullptr);
|
||||
strongSelf->setMediaSource(nullptr);
|
||||
strongSelf->teardown();
|
||||
if (strongSelf->_on_close) {
|
||||
strongSelf->_on_close();
|
||||
|
Loading…
Reference in New Issue
Block a user