mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #738, use reader and seeker for mp4 demuxer to seek for general mp4(ftyp-mdat-moov).
This commit is contained in:
parent
bbee16e4db
commit
9d21a8bb33
16 changed files with 237 additions and 101 deletions
|
@ -280,7 +280,7 @@ void SrsHttpFileReader::skip(int64_t /*size*/)
|
|||
{
|
||||
}
|
||||
|
||||
int64_t SrsHttpFileReader::lseek(int64_t offset)
|
||||
int64_t SrsHttpFileReader::seek2(int64_t offset)
|
||||
{
|
||||
return offset;
|
||||
}
|
||||
|
@ -324,4 +324,10 @@ int SrsHttpFileReader::read(void* buf, size_t count, ssize_t* pnread)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int SrsHttpFileReader::lseek(off_t offset, int whence, off_t* seeked)
|
||||
{
|
||||
// TODO: FIXME: Use HTTP range for seek.
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue