time based random access into a video file

Suppose I have a video file(s) named "Video_YYYYMMDD_HHmmSS.format" and I've indexed the start time embedded into the file name in my pair of waves; myIgorDatetime, myFullPathtoFile.

When I'm examining a time series of other measurement data, I need to be able to drop the cursor onto that data and invoke a function to pull up the still image associated with that time.

Function GetImageFromVideoFile( adatetime )

      String fullpathtoVideoFile = GetTheRightVideoFileFromIndex( adatetime ) // uses the preIndexed my<waves> described above

      Variable offset_seconds = adatetime - TheStartTimeOfTheRightVideoFile; // worked out elsewhere

      // Need advice here

     // Make an Image Wave appropriate to the resolution of fullpathtoVideoFile

     // Use some operation or XOP  to go into the video file and unroll the compression to get the still image

     return err;

End

I would first look at the documentation of PlayMovieAction and see what of the above can be handled by the operation.