iPad 视频播放仅提供音频,不提供视觉效果
最近我们为一家外部公司开发了一款 iPhone 应用程序,该应用程序中一切正常。
应用程序有一个部分从客户端服务器提取视频,并将其流式传输到 iPhone 的 MPMoviePlayerController 中。这在 iPhone 和 iPodTouch 上运行很好 - 视频和音频都显示得很好。
但问题是,当应用程序在 iPad 上运行时(使用 iPad 的 iPhone 模拟器),只能播放音频,而看不到视频。
有人对可能造成这种情况的原因有任何建议吗?我想也许是编码的问题,但是为什么这会阻止视频在 iPad 上播放,而不是在 iPhone 上播放呢?
Recently we've developed an iPhone app for an external company, and everything works fine in the app.
There is a section where the app pulls video from the client's server, and streams it into the iPhone's MPMoviePlayerController. This works fine on the iPhone and iPodTouch - both the video and the audio show up just great.
The problem, however, is that when the app is run on an iPad (using the iPad's iPhone simulator thingo that it does) only the audio plays, and no video can be seen.
Does anybody have any suggestions about what may be causing this? I thought perhaps it was the encoding, but then why would this prevent the video from playing on the iPad, and not the iPhone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 mpmovieplayerviewcontroller 代替,您可能会发现它效果更好。这是参考的链接 http://developer.apple.com/iphone/library/iPad/index.html#documentation/mediaplayer/reference/mpmovieplayerviewcontroller_class/reference/reference.html
Use mpmovieplayerviewcontroller instead, you might find it works better.Here is a link to the ref http://developer.apple.com/iphone/library/iPad/index.html#documentation/mediaplayer/reference/mpmovieplayerviewcontroller_class/reference/reference.html