Load embed youtube video in fullscreen mode by button click - iOS

天涯浪子 提交于 2019-12-23 05:28:04

问题


So the question is:

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.


回答1:


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">

...and then present it in a fullscreen UIWebView?

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.



来源:https://stackoverflow.com/questions/11205122/load-embed-youtube-video-in-fullscreen-mode-by-button-click-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!