Android VideoView - Detect point of time in video
问题 I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends. I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I detect the 10s mark? Thanks Chris 回答1: Step #1: Use postDelayed() or something to get control every second or so. Step #2: Check getCurrentPosition() and see if it is