Re: Get_CurrentPosition fails
- From: "vignesh" <vignesh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 15 May 2005 02:14:01 -0700
"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
.
- References:
- Get_CurrentPosition fails
- From: vignesh
- Re: Get_CurrentPosition fails
- From: Geraint Davies
- Get_CurrentPosition fails
- Prev by Date: Re: Streaming problems...
- Next by Date: Inserting the LTC (Longitudinal Time Code) in a video stream
- Previous by thread: Re: Get_CurrentPosition fails
- Next by thread: Text Over Video...
- Index(es):
Relevant Pages
|