Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position
From: soyo (dmalberdi_at_hotmail.com)
Date: 04/29/04
- Next message: soyo: "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Previous message: Ying-Shen Yu[MSFT]: "RE: MediaControl's Run halt whole app."
- In reply to: The March Hare \(MVP\): "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Next in thread: soyo: "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: soyo: "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Previous message: Ying-Shen Yu[MSFT]: "RE: MediaControl's Run halt whole app."
- In reply to: The March Hare \(MVP\): "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Next in thread: soyo: "Re: IStreamBufferMediaSeeking SetPositions unable to set Stop Position"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|