c++ - DirectShow stop/resume live stream -


I am using DirectShow to run audio / video files in my application. I use the filter graph and the media to create / pause / stop the interface. It works fine for local media files, but causes problems with Live MMS streams.

If I call on a live stream, however, if I say to start the stream again, then nothing happens. The graph generates an EC_COMPLETE event, but the video no longer plays.

After that, the call will resume the stream where it left, but eventually it will be closed. It appears that instead of synchronizing with live stream, the data in buffer will have to be backed up.

Do anyone know what to start playing without a live stream and rebuilding the filter graph? The behavior indicates that one of the filters in the graph indicates a small cart behavior if you feed again. If you want to be able to play with, you have to change the filter. Also, there is no good source filter for remaking MMS: // stream which is obsolete itself as a protocol. In Windows 7, Windows Media Player is using its personal directoryshow filter which is not available for applications. You can use custom source filters based on Windows Media Format SDK or third party replacement.

Update: In Windows XP, MMS: // URL Windows Media Splitter Filters (wmpasf.dll). It is obviously responsible for the bug in question. Therefore, if you are still going to use it, you may need to remove a new instance of the filter, re-add it, and render its PIN again to restart streaming. As I mentioned, this filter is no longer available in the latest versions of Windows (Windows 7 at the very least).


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -