mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
修正拼写错误
This commit is contained in:
parent
51eebe112e
commit
91ebb5db46
@ -58,7 +58,7 @@ public:
|
|||||||
virtual bool containVideo() const { return false; };
|
virtual bool containVideo() const { return false; };
|
||||||
virtual bool isInited() const { return true; };
|
virtual bool isInited() const { return true; };
|
||||||
virtual float getDuration() const { return 0;};
|
virtual float getDuration() const { return 0;};
|
||||||
virtual float getProgresss() const { return 0;};
|
virtual float getProgress() const { return 0;};
|
||||||
virtual void seekTo(float fProgress) {};
|
virtual void seekTo(float fProgress) {};
|
||||||
|
|
||||||
|
|
||||||
@ -184,11 +184,11 @@ public:
|
|||||||
}
|
}
|
||||||
return PlayerBase::getDuration();
|
return PlayerBase::getDuration();
|
||||||
}
|
}
|
||||||
float getProgresss() const override{
|
float getProgress() const override{
|
||||||
if (m_parser) {
|
if (m_parser) {
|
||||||
return m_parser->getProgresss();
|
return m_parser->getProgress();
|
||||||
}
|
}
|
||||||
return PlayerBase::getProgresss();
|
return PlayerBase::getProgress();
|
||||||
};
|
};
|
||||||
void seekTo(float fProgress) override{
|
void seekTo(float fProgress) override{
|
||||||
if (m_parser) {
|
if (m_parser) {
|
||||||
|
@ -27,11 +27,11 @@ public:
|
|||||||
typedef std::shared_ptr<RtmpPlayerImp> Ptr;
|
typedef std::shared_ptr<RtmpPlayerImp> Ptr;
|
||||||
RtmpPlayerImp();
|
RtmpPlayerImp();
|
||||||
virtual ~RtmpPlayerImp();
|
virtual ~RtmpPlayerImp();
|
||||||
float getProgresss() const override{
|
float getProgress() const override{
|
||||||
if(getDuration() > 0){
|
if(getDuration() > 0){
|
||||||
return getProgressTime() / getDuration();
|
return getProgressTime() / getDuration();
|
||||||
}
|
}
|
||||||
return PlayerBase::getProgresss();
|
return PlayerBase::getProgress();
|
||||||
};
|
};
|
||||||
void seekTo(float fProgress) override{
|
void seekTo(float fProgress) override{
|
||||||
fProgress = MAX(float(0),MIN(fProgress,float(1.0)));
|
fProgress = MAX(float(0),MIN(fProgress,float(1.0)));
|
||||||
|
@ -29,11 +29,11 @@ public:
|
|||||||
typedef std::shared_ptr<RtspPlayerImp> Ptr;
|
typedef std::shared_ptr<RtspPlayerImp> Ptr;
|
||||||
RtspPlayerImp();
|
RtspPlayerImp();
|
||||||
virtual ~RtspPlayerImp();
|
virtual ~RtspPlayerImp();
|
||||||
float getProgresss() const override{
|
float getProgress() const override{
|
||||||
if(getDuration() > 0){
|
if(getDuration() > 0){
|
||||||
return getProgressTime() / getDuration();
|
return getProgressTime() / getDuration();
|
||||||
}
|
}
|
||||||
return PlayerBase::getProgresss();
|
return PlayerBase::getProgress();
|
||||||
|
|
||||||
};
|
};
|
||||||
void seekTo(float fProgress) override{
|
void seekTo(float fProgress) override{
|
||||||
|
Loading…
Reference in New Issue
Block a user