i have made two video and overlay them by using class CVMR9Graph of VMR9Graph.h
from the project
Wrapper class for playing video with the VMR9[
^]
CVMR9Graph m_graph_overlap;
m_graph_overlap.ReleaseAllInterfaces();
m_graph_overlap.SetMediaWindow(vd);
m_graph_overlap.SetMediaFile(szFileName, 0);
m_graph_overlap.SetLayerZOrder(0, 0);
m_graph_overlap.SetMediaFile(szFileName2, 1);
m_graph_overlap.SetLayerZOrder(1, 2);
m_graph_overlap.SetAlphaLayer(0, 50);
m_graph_overlap.PreserveAspectRatio(FALSE);
m_graph_overlap.PlayGraph();
then i obtain some pointer
// GET POINTER FROM CVMR9Graph CLASS FOR PERFOMING VARIOUS MEDIA EVENT//
pMediaSeeking3=m_graph_overlap.GetPtrMediaSeeking();
pMediaControl3=m_graph_overlap.GetPtrMediaControl();
now i have implmented media forward seek function
pMediaSeeking3->GetCurrentPosition(&timeNow);
timeNow=timeNow+10000000/fps;
pMediaSeeking3->SetPositions(&timeNow, AM_SEEKING_AbsolutePositioning, NULL, AM_SEEKING_NoPositioning);
playing3=true;
pMediaControl3->Run();
DoTimerStuff3();
pMediaControl3->Pause();
playing3=false;
it will seek only first video and second video get paused..
i want to seek both the overalyed video simultaneously...