humble-video-noarch/src/main/java/io/humble/video/ContainerStream.java
public IndexEntry findTimeStampEntryInIndex(long wantedTimeStamp, int flags) {
    long cPtr = VideoJNI.ContainerStream_findTimeStampEntryInIndex(swigCPtr, this, wantedTimeStamp, flags);
    return (cPtr == 0) ? null : new IndexEntry(cPtr, false);
  }
public IndexEntry findTimeStampEntryInIndex(long wantedTimeStamp, int flags) {
    long cPtr = VideoJNI.ContainerStream_findTimeStampEntryInIndex(swigCPtr, this, wantedTimeStamp, flags);
    return (cPtr == 0) ? null : new IndexEntry(cPtr, false);
  }
Search for the given time stamp in the key-frame index for this Stream.<br>
<p><br>
Not all ContainerFormat implementations<br>
maintain key frame indexes, but if they have one,<br>
then this method searches in the Stream index<br>
to quickly find the byte-offset of the nearest key-frame to<br>
the given time stamp.<br>
</p><br>
@param wantedTimeStamp the time stamp wanted, in the stream's<br>
time base units.<br>
@param flags A bitmask of the <code>SEEK_FLAG_*</code> flags, or 0 to turn<br>
all flags off.  If Container#SEEK_FLAG_BACKWARDS then the returned<br>
index will correspond to the time stamp which is &lt;=<br>
the requested one (not supported by all demuxers).<br>
If Container#SEEK_FLAG_BACKWARDS is not set then it will be &gt;=.<br>
if Container#SEEK_FLAG_ANY seek to any frame, only<br>
keyframes otherwise (not supported by all demuxers).<br>
@return The IndexEntry for the nearest appropriate timestamp<br>
in the index, or null if it can't be found.