“服务器配置不正确”在 iPhone 上播放电影时收到消息
我正在尝试在 iPhone 应用程序中播放 iPhone 媒体播放器中的视频文件。我正在从一台媒体服务器读取流。 但我收到错误消息“服务器配置不正确”。
这是我的观察:
->我在服务器上保存了五个不同的视频文件。(我确信所有这些文件都已正确编码且格式正确。)
->当我尝试在 Mobile Safari 中运行相同的视频 URL 时,我工作完美,没有任何错误。
->当我尝试运行任何视频时,它不会在媒体服务器上创建任何流。(通常当我尝试播放视频时,它会在媒体服务器上创建流。但这里的流不是在服务器端创建的。)
->我尝试使用 Apple 的示例应用程序 MoviePlayer 播放此文件,但我遇到了同样的问题。(这里我尝试在模拟器上运行该应用程序)
->我还检查了我的 iphone 2G,其操作系统为 3.1.2(越狱),但我面临同样的问题。
请让我知道您对此的回应。
谢谢,
吉姆.
I am trying to play video files from iPhone media player in my iphone application.I am reading the stream from one Media server.
but i am getting error message as "The server is not configured correctly".
Here is my observation:
-> I kept five different video files on server.(i am sure that all of these files are properly encoded and in right format.)
-> When i try to run same video URL in Mobile Safari i works perfectly without any error.
-> When i try to run any of video it doesn't create any stream on media server.(Usually when i try to play video it create stream on media server.but here the stream is not created on server side.)
-> I tried to play this files using Apple's sample application MoviePlayer but i am facing same issue.(Here i tried to run the application on Simulator)
-> I also checked on my iphone 2G having OS 3.1.2 (jailbreak) but i face same issue.
Please let me know your response on this.
Thanks,
Jim.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您基本上需要一个支持渐进式下载的网络服务器。 Apache 确实支持它。
也许您想对 apache 上托管的视频尝试相同的场景。
如果这不起作用,请发布您的代码。
You basically need a web server which supports progressive downloads. Apache does support it.
Maybe you want to try the same scenario with the videos hosted on apache.
If that does not work, do post your code.
我已经找到了解决方案。实际上,我从服务器获得的某些链接包含错误字符,因此 URL 不正确。
纠正该问题后,现在我无法播放媒体服务器上的所有视频文件。
非常感谢您的帮助和建议。
谢谢,
吉姆.
I have figure out the solution.Actually for some links that i am getting from Server contains bad characters so the URL wasn't right one.
After correcting that issue now i am unable to play all the video file from media server.
Thanks a lot for your help and suggestions.
Thanks,
Jim.