android - How can I set the seek point in a VideoView or otherwise quickly end playback? -


is there way set video in videoview final second of duration? or trigger oncompletionlistener code?

videoview.seekto(int milisec)

attention, unit of parameter in millisecond.

myvideoview.seekto(myvideoview.getduration()) 

if have access instance of class implement oncompletionlistener, can manually call function.

but think it's quiet bad idea; callback should never fired manually.


Comments