mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
完善seek相关的逻辑
This commit is contained in:
@@ -177,10 +177,7 @@ void MediaReader::startReadMP4() {
|
||||
seek(ui32Stamp);
|
||||
return true;
|
||||
}
|
||||
uint32_t MediaReader::getStamp() {
|
||||
return _iSeekTime + _ticker.elapsedTime();
|
||||
}
|
||||
bool MediaReader::shutDown(){
|
||||
bool MediaReader::close(){
|
||||
AsyncTaskThread::Instance().CancelTask(reinterpret_cast<uint64_t>(this));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -46,8 +46,7 @@ public:
|
||||
static MediaSource::Ptr onMakeMediaSource(const string &strSchema,const string &strVhost,const string &strApp, const string &strId);
|
||||
public:
|
||||
bool seekTo(uint32_t ui32Stamp) override;
|
||||
uint32_t getStamp() override;
|
||||
bool shutDown() override;
|
||||
bool close() override;
|
||||
private:
|
||||
|
||||
#ifdef ENABLE_MP4V2
|
||||
|
||||
Reference in New Issue
Block a user