在 webView Iphone 上从 URL 打开视频
在我的 iPhone 应用程序中,我在 webview 上打开一个 URL。此 URL 包含视频。当我打开视频时,它不会全屏播放,如果我旋转屏幕,它也不会旋转。我该如何管理这个视频?我没有任何玩家。谁能帮助我吗?
请帮忙...
In my Iphone app I open a URL on a webview.This URL contains videos. When I open a video it is not played fullscreen and if I rotate the screen it is not rotating. How can I manage this video ? I don't have any player. Can anyone help me ?
Please help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这两个链接可以帮助您...尤其是第一个..
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
http://apiblog.youtube.com/2009/02 /youtube-apis-iphone-cool-mobile-apps.html
these two links can help you ... especially the first one..
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
从技术上讲,您不需要“媒体播放器”,只需将受支持的媒体 URL 加载到 UIWebView 中,它就会自动播放。我不建议养成这种习惯,但这是一个快速的解决方案。
You do not technically need a "media player", just load a supported media URL into a UIWebView and it should play automatically. I would not recommend making this a habit, but its a quick solution.
我认为您的网页中包含
标签。这就是为什么它没有全屏的原因。
尝试使用
video
播放视频,您一定会得到全屏视频
i think your webpage contains
<video>
tag in it. That's why its not getting full screen.try to play the video with
<a href="url of your video">video</a>
You will surely get the full screen video