Re: How to pause/resume playing from within my source filter?



If you have a network source filter, you can use this mechanism to
prevent the graph going from pause to run until you are ready. Return
VFW_S_STATE_INTERMEDIATE until you have enough data (observing the
timeout param in this case). You will then have to deliver some data
for the graph to cue correctly.

I've been reading this over and doing some other looking around, but still scratching my head a bit on this.

I think I may have originally mis-stated my situation. In my original post I said that I had a streaming source filter, but it's really more like a streaming capture filter. I derive from CSource, and data is pushed to my filter from a live capture server. Currently, I am using Pause/Run in my filter to tell the server to start/stop sending me capture data, so that if the user pauses the stream, I am not chewing up bandwidth with data that I would just throw away. Seems like I would somehow need to know the difference between a graph mandated pause, and a user one.

Not sure if your previous information still applies.
.



Relevant Pages

  • Re: Confusing message from GraphEdit
    ... GetState to the filter graph I walked thru the list of the filters and asked ... From GraphEdit I press Run and Pause - works fine. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How to force preview to use hardware overlay?
    ... The system that does not work as expected has a different capture ... if I can trust graphedt and its remote graph inspection ability). ... The OM input pin and Leadtek's capture filter support ... preview to take advantage of hardware overlay if present. ...
    (microsoft.public.win32.programmer.directx.video)
  • CLSID still image PIN_CATEGORY
    ... I figured out that I will be able capture an image into JPEG by using the ... //restart the graph - take 2 seconds ... I got a pointer to a frame buffer containing YV12 data. ... third-party filter, DMO or VCM codec (and some MPEG-4 ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: marking points in a capture graph.
    ... > How can one effectively mark points in a capture graph with a capture card ... > and MPEG2 encoder So I can seek to them later in a playback graph. ... > Right now I have a tee filter hooked up to a sink filter and a MPEG2 demux. ... really want to get the timestamp on the sample at the encoder. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Confusing message from GraphEdit
    ... Here is the description of my graph: ... The last filter is the recompiled Minimal Null-Null transform in place ... The dialog that GraphEdit displays offers two options: ... From GraphEdit I press Run and Pause - works fine. ...
    (microsoft.public.win32.programmer.directx.video)

Loading