video content on iPhone Safari/UIWebView

梦想的初衷 提交于 2020-01-15 12:08:21

问题


In my application I have a UIWebView that is able to play Youtube videos normally, but I'd like to play some videos from a website other than Youtube. If i try to play those videos in the iPhone Safari browser it opens in the same way that YouTube videos (fullscreen mode, showing the player), but that doesn't happen in the UIWebView inside my application.

As an example, consider the following URL: http://m.video.globo.com/#video.php?id=1174097 (don't forget to open it in the simulator)

I didn't have to download any plugin or application to play it. Both JavaScript and Plug-Ins options in the iPhone Settings are turned on.

Is there something wrong with my UIWebView? All I'm doing is loading the webpage using the "loadRequest" method from UIWebView class.

Thanks in advance.


回答1:


The iPhone has support for youtube videos, (hence the built in youtube player), other than that it supports only quicktime. There is no support for other formats: most sites use flash for video these days (inc youtube), but flash is not supported on the iPhone. I site embedding a youtube video will work, but one embedding a video hosted elsewhere will not (unless its quicktime)



来源:https://stackoverflow.com/questions/1882286/video-content-on-iphone-safari-uiwebview

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