Get_CurrentPosition fails

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.



Relevant Pages

  • Re: Get_CurrentPosition fails
    ... when the video is rendering and the ... > run api is called again then when we tried to get the current time, ... The current stream time is based on the parameter you ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How do I detect the end of a video
    ... I need to do is detect when the video ends so I can hide the ... Private m_objMediaControl As IMediaControl ... In fact the IMediaPosition object might also be of use ... Then use the following example Timer code just to initially check that it is ...
    (microsoft.public.vb.general.discussion)