How can I stream WMV files to my iOS application? [closed]

故事扮演 提交于 2019-12-14 03:25:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!