开发者

Audio player controls disappears

I'm playing audio file using the mediaController. Everything is working fine, just the media controller hides after few second, but I want to show it then what should I do?

setContentView(R.layout.playingactivity);
mPath = (EditText) findVie开发者_如何学JAVAwById(R.id.path);
mPath.setText(GlobalVariable.getstrEmail());
mVideoView = (VideoView) findViewById(R.id.surface_view);
Uri uri = Uri.parse("/sdcard/download/test.mp3");

mediaController = new MediaController(this);
mediaController.setAnchorView(mVideoView);
mVideoView.setMediaController(mediaController);
mVideoView.setVideoURI(uri);
mVideoView.start();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜