如何将WMV文件流式传输到我的iOS应用程序? [英] How can I stream WMV files to my iOS application?

查看:214
本文介绍了如何将WMV文件流式传输到我的iOS应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过网络将Windows Media Video(.wmv)文件流式传输到我的iPhone应用程序中?

Is it possible to stream a Windows Media Video (.wmv) file via the web into my iPhone application?

如果是这样,怎么办?是否有可以启用此功能的库?

If so, how? Are there libraries out there that can enable this?

推荐答案

您需要对文件进行转码. iOS设备本身不支持WMV文件格式或其中的视频编解码器. (例如:WMV2,WVC1,.)

You'll need to transcode the files. iOS devices do not natively suport WMV file format or the video codecs within. (E.g.: WMV2, WVC1, et al.)

iLounge: The Complete Guide to iPod, Apple TV and iPhone Video Formats is a great source of information for working out what containers and codecs you should target. Read it carefully. While iOS devices support MPEG-4/h264 videos, they do not support any and all codec options. That means you could encode a valid h264 video, which will play on your PC, but won't play on an iOS device.

如果可以的话,我建议您使用原始资料重新编码. FFmpeg + VLC 是另一个可靠的选择.

I'd recommend re-encoding from the source material if you can. FFmpeg + x264 are great open source tools for accomplishing this, although they will require a degree of technical sophistication. VLC is another solid option.

这篇关于如何将WMV文件流式传输到我的iOS应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆