本文介绍了如何将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:《 iPod,Apple TV和iPhone视频格式的完整指南》 是确定要使用的容器和编解码器的重要信息来源.请仔细阅读.虽然iOS设备支持MPEG-4/h264视频,但它们不支持任何和所有编解码器选项.这意味着您可以编码有效的h264视频,该视频将在您的PC上播放,但无法在iOS设备上播放.

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 + x264 是实现此目的的出色开源工具,尽管它们需要一定程度的技术支持. 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应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 15:54