如何恢复媒体播放器? [英] How to resume the mediaplayer?

查看:317
本文介绍了如何恢复媒体播放器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是媒体播放器。

I am using a media player.

我有启动,停止和暂停的球员选项。我的问题是,我无法找到从它previously暂停..点恢复播放曲目的选择

I have the option for starting ,stopping and pausing the player. The problem I have is that I cannot find the option to resume the song from the point that it previously was paused..

任何帮助提供将是非常有益的。

Any help provide would be really helpful.

推荐答案

感谢您的关注,但我有我自己

Thank you for your attention but I've got it myself

有关暂停媒体播放器我用:

for pausing the Mediaplayer I used:

Mediaplayer.pause();
length=Mediaplayer.getCurrentPosition();

和从停止的地方,最近被完成的位置恢复播放器:

and for resuming the player from the position where it stopped lately is done by:

Mediaplayer.seekTo(length);
Mediaplayer.start();

这篇关于如何恢复媒体播放器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆