Media Foundation插件来处理ZIP文件 [英] Media Foundation plugin to handle ZIP file
问题描述
我想流一个包含多个MPEG2 TS文件的Zip文件.例如:
I want to stream a Zip file which contains multiple MPEG2 TS files. For instance:
< video src = http://www.testvideo.com/myfile.zip ....>
<video src=http://www.testvideo.com/myfile.zip ....>
什么是最好的方法? Windows已提供用于URL的方案处理程序和用于MPEG2 TS的字节处理程序.
What would be a best approach for this? There is already a scheme handler for URL and a byte handler for MPEG2 TS that come with Windows.
推荐答案
也许编写自定义媒体源,在其中解压缩zip,然后按顺序开始流式传输MPEG文件!因此,您的源的输出类型将为MPEG2 ...
Maybe you'd want to write a custom media source, in which you unpack the zip and then start streaming the MPEG files sequentially!? So the output type of your source would be MPEG2...
有关媒体源的信息可以在这里找到 http://msdn.microsoft.com/zh-cn/library/windows/desktop/ms700134(v = vs.85).aspx 和此处
Info for media sources can be found here http://msdn.microsoft.com/en-us/library/windows/desktop/ms700134(v=vs.85).aspx and here http://msdn.microsoft.com/en-us/library/windows/desktop/ms697527(v=vs.85).aspx
这篇关于Media Foundation插件来处理ZIP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!