Play video file from a memory stream

前端 未结 1 968
难免孤独
难免孤独 2021-01-27 10:02

Just curious to see if this is possible. I have a windows application that reads all the bytes from a .avi file situated on my pc and then stores it in a byte[]. So now I have t

相关标签:
1条回答
  • 2021-01-27 10:35

    For DirectShow, an in-memory source filter may be required. I am not aware of such a filter being available, but one can be based on Async Filter Sample from DirectShow samples. This is in C++ though.

    For .NET, DirectShow.NET library can be used. A sample GSSF filter there may be a good start for an in-memory source filter implementation. This library also provides COM Interop for DirectShow that could be used to build a test player application that instantiates this filter.

    0 讨论(0)
提交回复
热议问题