问题
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?
回答1:
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.
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.
来源:https://stackoverflow.com/questions/8401773/how-can-i-stream-wmv-files-to-my-ios-application