Re: Get_CurrentPosition fails





"Geraint Davies" wrote:

> On Thu, 12 May 2005 19:15:18 -0700, vignesh wrote:
>
> > Hi
> > Have any one faced the Senario ... when the video is rendering and the
> > run api is called again then when we tried to get the current time , it is
> > returing unexpected value.
> >
> > IMediaFilter - > run ()
> > IMediaPosition - > get_CurrentPosition(xx) returns the right value.
> >
> > when
> >
> > IMediaFilter- > run ()
> > IMediaFilter -> run()
> >
> > IMediaPosition ->get_CurrentPosition(xx) fails the give the value .
> >
> > Some times giving xx less than expected ,some time returing Null ..
> >
> > i tried using
> >
> > IMediaSeeking -> GetCurrentPosition() .. give the same senario ,
> >
> > regards
> > Nagga
>
> why are you calling IMediaFilter::Run instead of IMediaControl::Run?
>
> The current position is calculated using the last start time and the
> current stream time. The current stream time is based on the parameter you
> pass to IMediaFilter::Run, so maybe the problem lies there?
>

Hi Thanks for u Reply

Even when i changed From IMediaFilter::Run to IMediaControl::Run , it fails
it looks like a diff problem since when i get the current time it work fine
with IMediaControl::Run but after continues Run Apis it fails.

and one morething is when the set_postion is set to the last frame of the
video and when the run api is called the movie is not moving to the last
frame instead it hangs in the frame which i pass the set_positon ..


regards
vignesh
.



Relevant Pages

  • Re: API 500 frame data ?
    ... API says it is available, but I have had no luck getting it. ... wishing to make products designed to fit into API's 500 series ... My DIY is usually done on vector board. ... The 500VPR frame is ...
    (rec.audio.pro)
  • Re: Asking about Medical Application
    ... Most of the Intraoral software out there is old and uses the Microsoft ... DirectShow API and / or the Windows Media Video API WMV. ...
    (sci.med.dentistry)
  • Re: SDK and API video conversions
    ... |> Some video software, especially software that comes with specific |> hardware, often throws up "SDK" and "API" as available features. ... But maybe a few |> videographers who've never doing any computer programming would not |> catch the implied meaning. ... | refer to specific codecs and/or file formats widely used for video. ...
    (rec.video.production)
  • Re: enumarate list of device driver for sound, video and game controllers
    ... i want to enumarate list of device driver for sound, video and game ... controllers. ... so please help me that for this which API i have to use ... ...
    (microsoft.public.development.device.drivers)
  • Re: SDK and API video conversions
    ... |> Software programmers know the meanings you state. ... | refer to specific codecs and/or file formats widely used for video. ... "Includes full SDK and advanced API" ...
    (rec.video.production)