通过单击按钮以全屏模式加载嵌入 youtube 视频 - iOS [英] Load embed youtube video in fullscreen mode by button click - iOS
本文介绍了通过单击按钮以全屏模式加载嵌入 youtube 视频 - iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以问题是:
我可以在全屏模式下加载加载嵌入 youtube 视频,通过单击按钮,跳过中间 UIWebView 吗?
Can i load load embed youtube video in fullscreen mode, by button click, skip intermediate UIWebView?
谷歌搜索只给了我一个答案 - 可能没有,但希望还活着.
Googling gave me only one answer - probably NO, but hope still alive.
推荐答案
您是否尝试将视频嵌入为全屏页面?类似的东西:
Have you tried embedding the video as a fullscreen page? Something like:
<object style="height: 768px; width: 1024px">
<param name="movie" value="http://www.youtube.com/v/gPLb9FVKoqI?version=3&feature=player_detailpage">
<param name="allowFullScreen" value="true">
<param name="allowScriptAccess" value="always">
<embed src="http://www.youtube.com/v/gPLb9FVKoqI?version=3&feature=player_detailpage" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="1024" height="768">
...然后在全屏 UIWebView 中呈现?
...and then present it in a fullscreen UIWebView?
这是假设您以某种方式自己生成嵌入页面(如果您知道视频 ID,这应该不难)
This is assuming you somehow generate yourself the embedded pages (which shouldn't be difficult if you know the video id)
除此之外,我看不出您还有什么其他选择.
Other than that, I don't see what other options you might have.
这篇关于通过单击按钮以全屏模式加载嵌入 youtube 视频 - iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文