媒体播放器播放某些时间 [英] Play mediaplayer for certain duration
本文介绍了媒体播放器播放某些时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要玩的媒体播放器仅售10秒。如何控制呢?
I want to play the mediaplayer for just 10 sec. How to control it?
推荐答案
您可以使用的TimerTask
来安排 MediaPlayer.stop()
后10秒运行。
You could use TimerTask
to schedule a MediaPlayer.stop()
to run after 10 secs.
这篇关于媒体播放器播放某些时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文