由网友(微雨清凉夏已尽丶)分享简介:我有一个应用程序,其中帮助部分有一个视频教程我想迫使该视频使用YouTube播放器全屏打开(就像市场/ Play应用程序一样)。它迫使视频全屏播放,即使它是一个人像视频。我用这个code,强制视频YouTube播放器中打开 字符串VIDEOID =VIDEO_ID_HERE;意向意图=新意图(Intent.ACTION...![qq空间网络视频怎么全屏 就是在空间播放主页显示是全屏](https://p.xsw88.cn/allimgs/daicuo/20230907/5953.png)
我有一个应用程序,其中帮助部分有一个视频教程我想迫使该视频使用YouTube播放器全屏打开(就像市场/ Play应用程序一样)。它迫使视频全屏播放,即使它是一个人像视频。
我用这个code,强制视频YouTube播放器中打开
字符串VIDEOID =VIDEO_ID_HERE;意向意图=新意图(Intent.ACTION_VIEW,Uri.parse(vnd.youtube:+ VIDEOID));intent.putExtra(VIDEO_ID,VIDEOID);startActivity(意向);
解决方案
的Youtube v4.1.47应用CANDO为您
intent.putExtra(force_fullscreen,真正的);
![qq空间网络视频怎么全屏 就是在空间播放主页显示是全屏](https://p.xsw88.cn/allimgs/daicuo/20230907/5953.png)
我不知道关于低版本。
I have an app where the help section has a tutorial video I want to force this video to open in Fullscreen using the Youtube player (Just like the Market/Play app does). it forces videos to play in Fullscreen even if it's a portrait video.
I use this code to force the video to open in youtube player
String videoId = "VIDEO_ID_HERE";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:"+videoId));
intent.putExtra("VIDEO_ID", videoId);
startActivity(intent);
解决方案
Youtube v4.1.47 app cando it for you
intent.putExtra("force_fullscreen",true);
I dont know about lower versions.
相关推荐
最新文章