View Full Version : Can not use IMVSCQualityProperties interface

May 27, 2004, 21: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, 10:25:46

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;

Bernd Peretzke

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