开发者

Open video from a URL on webView Iphone

开发者 https://www.devze.com 2023-04-08 20:51 出处:网络
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\

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


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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号