Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 MediaController 添加到 VideoView,但除非我点击电话,否则它不会显示。控制器在一段时间后消失。
有没有办法让 MediaController 始终显示?
谢谢克里斯
默认媒体控制器将在用户不活动的 3 秒内隐藏。您可以设置超时秒数
new media controller().show(50000);
检查这个链接
以下代码始终显示 MediaController:
VideoView videoView; MediaController mc; videoView.setMediaController(new MediaController(this) { public void hide() { System.out.println("HIDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEHELLLOO"); mc.show(); } });