阅读背景:

在服务中使用mediaplayer在后台播放视频

来源:互联网 

I'm develop a app that can play video from youtube, if user pressed home button, user can hear the audio and then they can back to see video again. So, i use Mediaplayer and setDisplay surfaceview to it to see video, but it can't keep player play when home pressed, i know Service can perform long-running operations in the background and does not provide a user interface. so, i create a service that hold MediaplayerI'm develop a app that can play video from yout




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: