# Seek\_closest\_sync

**URL:** <https://discourse.processing.org/t/seek-closest-sync/27593>\
**Category:** Processing for Android\
**Created:** [February 4, 2021, 9:54pm UTC](https://discourse.processing.org/t/seek-closest-sync/27593 "2021-02-04T21:54:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paturn](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@paturn](https://discourse.processing.org/u/paturn)\
**Post date:** [February 4, 2021, 9:54pm UTC](https://discourse.processing.org/t/seek-closest-sync/27593/1 "2021-02-04T21:54:25Z")

</div>

I am using video to display on screen. The code requires capability to start at any location. I have used seekTo but the video restarts some distance from the required position, possibly the nearest key frame.  
Elsewhere I can use a secondary parameter such as SEEK\_ CLOSEST\_SYNC or SEEK\_NEXT\_SYNC SEEK\_PREVIOUS\_SYNC but it doesn’t seem to work in Processing for  
Android. Any ideas if it is possible?
