如何在Youtube Player android API中隐藏控件,全屏按钮? [英] How I can hide controls, full screen buttons in Youtube Player android API?
本文介绍了如何在Youtube Player android API中隐藏控件,全屏按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将按钮隐藏在YouTube视频播放器(api)中.我用过
I am trying to hide the buttons in a Youtube video player (api). I used
player.setShowFullscreenButton(false)
这成功地隐藏了全屏按钮,但是我没有找到隐藏控制按钮的方法-该按钮可以转到youtube应用程序.
this hides the fullscreen button successfully, but I did not find way to hide the control button -- that button can go to youtube application.
我尝试使用
player.setPlayerStyle(PlayerStyle.MINIMAL);
这将隐藏所有按钮,但也会更改进度栏,但是我需要旧的进度栏.
This hides all buttons, but also changes the progress bar, but I need the old progress bar.
有帮助吗?
推荐答案
You can initiate the player as a "Chromeless" player. That should do it.
这篇关于如何在Youtube Player android API中隐藏控件,全屏按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文