且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何隐藏在android的***播放器***标志

更新时间:2023-10-12 08:31:28

我不知道你想要什么样的风格,但你可以使用***播放器作为活动或片段或视图。所以,你基本上可以用新的API ***Player轻松地自定义您的播放器。如果你想要一些简单的***播放器,全屏(无标题栏模式)。

I don't know what kind of style you want, but you can use *** Player as Activity or Fragment or a View. So you can basically customise your player easily with new ***Player API. If you want some simple *** player with fullscreen (no titlebar mode).

您可以挑选他边框的风格,它没有任何控制 - 这只是编程控制下播放视频的矩形。
你可以***地实现自己的UI控件播放器之外,它们连接起来,通过你得到初始化***PlayerView或***PlayerFragment后回***Player。请记住,如***PlayerView JavaDoc中提到,这是不允许的,而视频播放覆盖在[播放]视图与其他意见

You can pick he chromeless style, it doesn't have any controls - it's only a rectangle that plays a video under programmatic control. You're free to implement your own controls UI outside the player and wire them up through the ***Player that you get back after initializing a ***PlayerView or ***PlayerFragment. Keep in mind that, as mentioned in the ***PlayerView JavaDoc, "it is not permitted to overlay the [player] view with other views while a video is playing"

请参考以下链接:

1] https://gist.github.com/TheFinestArtist/5545437

2] https://developers.google.com/***/android/player/reference/com/google/android/***/player/***Player.PlayerStyle#Enums