开发者

How to connect Media Player to a SeekBar?

I want to show the p开发者_JAVA百科rogress of a media on a seekbar. Also I want to allow user to "jump" within a medium.

I have a MediaPlayer, and a SeekBar. And as far as I see there is no an easy way to merge them.


You can use VideoView instead of MediaPlayer and you can have MediaController which can be set to VideoView.

Otherwise you have to get the progress at instances and update the seek bar you can use timers.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜