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.
this | |
offset |
offset of entry |
ts |
timestamp associated with offset |
key |
whether entry refers to keyframe |
force |
add entry disregarding sanity checks |
bool indicating whether entry was added |