mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 03:28:09 +08:00
时间戳统一使用毫秒
This commit is contained in:
@@ -49,13 +49,13 @@ public:
|
||||
};
|
||||
float getProgress() const override{
|
||||
if(getDuration() > 0){
|
||||
return getProgressTime() / getDuration();
|
||||
return getProgressMilliSecond() / (getDuration() * 1000);
|
||||
}
|
||||
return PlayerBase::getProgress();
|
||||
};
|
||||
void seekTo(float fProgress) override{
|
||||
fProgress = MAX(float(0),MIN(fProgress,float(1.0)));
|
||||
seekToTime(fProgress * getDuration());
|
||||
seekToMilliSecond(fProgress * getDuration() * 1000);
|
||||
};
|
||||
private:
|
||||
//派生类回调函数
|
||||
|
||||
Reference in New Issue
Block a user