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

2023-09-07 09:49:08 作者:态度少年,

我不希望共享YouTube视频在我的Andr​​oid application.But当我在YouTube的点击PLAYE YouTube标志,链接进入YouTube网站。

I don't want to share youtube videos in my android application.But when i click youtube logo in youtube playe, the link goes to youtube website.

那么,如何隐藏YouTube徽标的YouTube player.Please提出了一些想法......

So, How can i hide youtube logo in youtube player.Please suggest some ideas...

觉得我不想分享YouTube视频

Think is i don't want to share youtube videos

推荐答案

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

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

您可以挑选他边框的风格,它没有任何控制 - 这只是编程控制下播放视频的矩形。你可以自由地实现自己的UI控件播放器之外,它们连接起来,通过你得到初始化YouTubePlayerView或YouTubePlayerFragment后回YouTubePlayer。请记住,如YouTubePlayerView 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 YouTubePlayer that you get back after initializing a YouTubePlayerView or YouTubePlayerFragment. Keep in mind that, as mentioned in the YouTubePlayerView 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/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayer.PlayerStyle#Enums