Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: soyo (dmalberdi_at_hotmail.com)
Date: 04/29/04


Date: 29 Apr 2004 01:59:46 -0700


"The March Hare \(MVP\)" <phil@ndsm.maps> wrote in message news:<OFp8yQYLEHA.3516@TK2MSFTNGP11.phx.gbl>...
> From the docs:
>
> "SetPosition: Sets stream position and segment stop"
>
> What does IStreamBufferMediaSeeking ::CheckCapabilities return using
> AM_SEEKING_CanDoSegments.

IStreamBufferMediaSeeking::CheckCapabilities(pCapabilities) returns:

if pCapabilities = AM_SEEKING_CanDoSegments -> HRESULT = 80004005 ( An
undetermined error occurred)

if pCapabilities = AM_SEEKING_CanGetCurrentPos -> HRESULT = 0.

if pCapabilities = AM_SEEKING_CanGetStopPos -> HRESULT = 0.

IStreamBufferMediaSeeking::GetCapabilities returns 3F (00111111), that
is:
AM_SEEKING_CanSeekAbsolute = 0x1,
AM_SEEKING_CanSeekForwards = 0x2,
AM_SEEKING_CanSeekBackwards = 0x4,
AM_SEEKING_CanGetCurrentPos = 0x8,
AM_SEEKING_CanGetStopPos = 0x10,
AM_SEEKING_CanGetDuration = 0x20,
AM_SEEKING_CanPlayBackwards = 0x40

but not:
AM_SEEKING_CanDoSegments = 0x80,
AM_SEEKING_Source = 0x100

>From the documentation of CheckCapabilities:

"AM_SEEKING_CanDoSegments
The stream can do seamless looping"

>From the documentation of SetPositions:

"To perform looping, the graph must report AM_SEEKING_CanDoSegments in
the IMediaSeeking::GetCapabilities method."

I don't want to perform looping, just want to set stop position. Does
it affect?

Thanks.



Relevant Pages

  • Re: Best way to "loop" FilterGraph when playing a video file.
    ... >-I have a filtergraph, which plays a video file (graph created with ... >-And I want to loop the playback. ... >So I wonder what is a good method to implement looping? ...
    (microsoft.public.win32.programmer.directx.video)
  • Best way to "loop" FilterGraph when playing a video file.
    ... -I have a filtergraph, which plays a video file (graph created with ... -And I want to loop the playback. ... So I wonder what is a good method to implement looping? ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: Do loop syntax
    ... As to the looping, you have that correct. ... Note that in the above code, strWhere will filter the report. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Output to TIF
    ... Works well but a little complicated when looping through a recordset. ... report, giving it the name of the key in the dataset, print the new report, ... delete it, loop. ... > If you are using Office 2003 the MODI printer Driver will allow you to ...
    (microsoft.public.access.reports)
  • Re: Carriage return
    ... I have a report with a memo field that has been built up with a looping ...
    (microsoft.public.access.reports)