Is there an API where I can ask for the Previous Bookmark based on the camera FQID and a TimeDate?

Is there an API where I can ask for the Previous Bookmark based on the camera FQID and a TimeDate?

I am expanding the VideoViewer sample (the simple live and replay example).

The example has Start and End DB and Previous and Next Sequence buttons.

I want to jump to the Previous and Next Bookmark.

I’ve seen the API where I can search forwards in time for the next bookmark.

But I cannot see anything to search backwards for the previous bookmark.

Is there an API?

If not, then I’d just have a loop and do searching in 1 hour timespans going back to older and older timespans until I find one.

Thanks

Answered my own question…​

in BookmarkSearchTime, a negative value for timeLimit means backwards in time