Well, that was pretty simple, but not the way I expected. You must love QtQuick2.
So, I have a MediaPlayer source and a VideoOutput element in my QML code:
MediaPlayer { id: mp1 source: "slide-1.wmv" } VideoOutput { id: tbltSlides anchors.fill: parent visible: true source: mp1 }
All I had to do was just add a ShaderEffectSource and set tbltSlides as the source. So simple:
ShaderEffectSource { id: slides x: 600 width:250 height: 250 sourceItem: tbltSlides visible: true }
EDIT: Obviously, in order to get the best quality, you need the tbltSlides element to be larger than the ShaderEffectSource, so that the shader reduces the original image.
source share