add_index_entry
Description:
Adds an entry to the index associating offset
to ts
.
It is recommended to only add keyframe entries. force
allows to bypass checks, such as whether the stream is (upstream) seekable,
another entry is already "close" to the new entry, etc.
Parameters:
this | |
offset |
offset of entry |
ts |
timestamp associated with offset |
key |
whether entry refers to keyframe |
force |
add entry disregarding sanity checks |
Returns:
bool indicating whether entry was added |