开发者

setOnSeekCompleteListener for VideoView how can be achieved [duplicate]

This question already has answers here: android: onSeekCompleteListener with VideoView (3 answers) Closed 3 years ago.

I'm developing a video player application for which the user has an option to seek to a particular location, but the problem is there is no setOnSeekCompleteListener for VideoView,

So I am not sure if the seek operation that was requested has completed or not, and whether to start playback if it is complete.

Is there a way to implement a setOnSeekCompleteListener with VideoView.

开发者_StackOverflowThanks, Shrikant.


You can switch from using VideoView to using MediaPlayer and a SurfaceView.

Or, grab the source code to VideoView (which is simply a combination of MediaPlayer and a SurfaceView) and modify it to expose the MediaPlayer setOnSeekCompleteListener().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜