iPhone UIWebView / Safari.app iOS 4视频/电影 - 服务器问题? [英] iPhone UIWebView/Safari.app iOS 4 video/movie - Server issue?
问题描述
我有一个UIWebView,可以从外部服务器加载视频。代码似乎很好,因为它在我尝试在另一台服务器上托管我的视频时起作用。
自从iOS 3.0以来服务器不需要有任何变化吗? (加载没有问题)。
I have a UIWebView which loads videos from an external server. The code seems to be fine since it works when I try to host my videos on another server. Are there any changes since iOS 3.0 which the server didn't need to have? (Where it loaded without problems).
测试它的最简单方法是在内置的Safari.app中加载url,在我得到的大多数服务器上这部电影可以不能播放,在我的本地网络服务器和外部虚拟服务器上运行。
The easiest way to test it is to load the url in the inbuilt Safari.app, on most servers I get "This movie could not be played", on my local webserver and an external virtual Server it works.
所以我认为需要为iOS视频播放设置一些特定的新服务器设置?
So I suppose there need to be some specific new server settings for iOS video playback?
拼命寻找帮助
推荐答案
用户@cduhn建议查找服务器的MIME返回类型,这似乎是答案。我联系了我的主机添加所有苹果特定的MIME类型(3gp,m4v和mp4),现在它正在工作。奇怪的是,它没有它们在3.0中工作。
User @cduhn suggested looking in to MIME return types of the server, and that seemed to be the answer. I contacted my host to add all apple specific MIME types (3gp, m4v and mp4) and now it's working. Strange it worked in 3.0 without them.
这篇关于iPhone UIWebView / Safari.app iOS 4视频/电影 - 服务器问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!