locked
performance issue when resizing video window RRS feed

  • Question

  • Hello,

    When I'm trying to run SimplePlayer sample and resize video it works great. This sample uses deprecated interface IMFPMediaPlayer which called UpdateVideo method on WM_PAINT or WM_SIZE.

    When I'm trying to run sample from this topic http://msdn.microsoft.com/en-us/library/ms703190(v=VS.85).aspx and resize video window performance of video playback is significantly reduced. (It uses IMFVideoDisplayControl::RepaintVideo on WM_PAINT and IMFVideoDisplayControl::SetVideoPosition on WM_SIZE).

    What should do I to have possibility to play and resize video at the same time without losing performance?

    Sunday, January 16, 2011 5:04 PM

All replies

  • UpdateVideo just calls SetVideoPosition and then RepaintVideo on IMFVideoDisplay control.  If UpdateVideo worked fine for you, you could probably just add a RepaintVideo call to the end of the WM_SIZE handler to fix the issue with the media session sample.
    Thursday, January 20, 2011 1:39 AM