我正在使用Google的youtube播放器api播放youtube视频,它指定了三种不同的播放器 View 样式,这是在Android中自定义播放器 View 的任何方式。

谢谢

最佳答案

我不知道您想要哪种样式,但是您可以将YouTube播放器用作“Activity ”或“fragment ”或“ View ”。
因此,您基本上可以使用新的YouTubePlayer API轻松自定义播放器
如果您想使用全屏(没有标题栏模式)的简单youtube播放器,欢迎使用我的代码!!
此来源处理“定向问题”,“媒体量问题”,“ YouTube网址解析问题

  • 这是开源库
    https://github.com/TheFinestArtist/SimpleYouTubePlayer
  • 这是示例代码
    https://gist.github.com/TheFinestArtist/5545437
  • 我也制作了示例应用程序,您可以下载
    https://play.google.com/store/apps/details?id=com.thefinestartist.simpleyoutubeplayer
  • 关于android - 在Android中自定义YouTube播放器 View ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16331628/

    10-09 07:22
    查看更多