Click here to Skip to main content
15,887,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900