【问题标题】:Displaying youtube video in portrait with the YouTubeStandalonePlayer使用 YouTubeStandalonePlayer 纵向显示 youtube 视频
【发布时间】:2013-01-24 16:05:22
【问题描述】:

使用适用于 android 的新 youtube api,当尝试使用 YouTubeStandalonePlayer 启动 Activity 时,它会以横向模式显示视频。

Intent youtubeIntent = YouTubeStandalonePlayer.createVideoIntent(context, Configuration.DEVELOPER_KEY, item.getVideo().getId(), 0, true,false);
context.startActivity(youtubeIntent);

我希望视频仍以全屏模式显示,但采用纵向模式。

【问题讨论】:

  • 问这个问题已经2年了,但不幸的是仍然没有可用的解决方案!
  • 又过了一年,有什么解决办法吗?

标签: android android-youtube-api


【解决方案1】:

您可以尝试将lightboxMode 参数(最后一个布尔值)设置为true。那时它不会是全屏的,但我认为它至少可以保持纵向模式(我想,虽然没有尝试过......)。

【讨论】:

  • 我知道,但我仍然希望它是全屏的:\
  • 目前的 API 无法做到这一点 :(
  • 这是最接近我需要的,但仍然不完整,只要背景上有内容即可
猜你喜欢
  • 2014-12-19
  • 2021-08-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-15
  • 2015-04-29
  • 2011-09-09
  • 1970-01-01
相关资源
最近更新 更多