add_index_entry


Description:

public bool add_index_entry (uint64 offset, ClockTime ts, bool key, bool force)

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

Parse.

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