PDA

View Full Version : Can not use IMVSCQualityProperties interface



derek
May 27, 2004, 22:19:32
When I try to use the IMVSCQualityProperties interface, a "No such interface supported exception is thrown. But getting and using a IMVSCFilterGraph or IMVSCSetFile interface from the same object works fine.

IMVSCQualityProperties qp = (IMVSCQualityProperties)axMVSmartControl.GetOcx();
int afr = qp.AverageFrameRate; // Throws exception

Bernd Peretzke
June 7, 2004, 11:25:46
Hi,

there is a small bug in the MV Smart Control. To use the IMVSCQualityProperties interface you have to set explicit the video renderer filter. Add the following code to use the IMVSCQualityProperties interface:

MVSmartControl.IMVSCVideoWindow VideoWindow;
VideoWindow = (MVSmartControl.IMVSCVideoWindow)axMVSmartControl. GetOcx();

// set the video renderer
VideoWindow.SetVideoRenderer(FilterGraph.FilterGra phManager, "Video Renderer");

MVSmartControl.IMVSCQualityProperties qp = (MVSmartControl.IMVSCQualityProperties)axMVSmartCo ntrol.GetOcx();
int afr = qp.AverageFrameRate;

Regards
Bernd Peretzke

Bernd Peretzke
June 9, 2005, 16:19:03
You can use the IMVVideoWindow::RendererFilter property instead of the IMVVideoWindow::SetVideoRenderer method.