在我的 android 应用程序中以全屏模式播放 youtube 视频 [英] play youtube video in full screen mode in my android app

查看:23
本文介绍了在我的 android 应用程序中以全屏模式播放 youtube 视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码在我的应用中播放 YouTube 视频.

I am using the following code to play youtube videos in my app.

startActivity(new Intent(Intent.ACTION_VIEW, 
                         Uri.parse("http://www.youtube.com/watch?v=videoid")));

我希望以全屏模式打开 youtube 视频.有什么办法可以做到这一点吗?

I would like the youtube videos to open in full screen mode. Is there any way to achieve this?

推荐答案

虽然我最初失败了,但我最终按照此链接中的说明成功了http://keyeslabs.com/joomla/projects/youtube-player/244-open-youtube-activity-project-launched-by-keyes-labs

Although I failed at this initially, I eventually succeeded by following the instructions at this linkc http://keyeslabs.com/joomla/projects/youtube-player/244-open-youtube-activity-project-launched-by-keyes-labs

在这里您创建自己的视频播放器并在其中播放视频

Here you create your own video player and the video gets played in it

这篇关于在我的 android 应用程序中以全屏模式播放 youtube 视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆