SceneResize.qml Example File
multimedia/video/qmlvideo/qml/qmlvideo/SceneResize.qml
import QtQuick 2.0
Scene {
id: root
property string contentType
Content {
id: content
anchors.centerIn: parent
width: parent.contentWidth
contentType: root.contentType
source: parent.source1
volume: parent.volume
SequentialAnimation on scale {
id: animation
loops: Animation.Infinite
property int duration: 1500
running: true
PropertyAnimation {
from: 1.5
to: 0.5
duration: animation.duration
easing.type: Easing.InOutCubic
}
PropertyAnimation {
from: 0.5
to: 1.5
duration: animation.duration
easing.type: Easing.InOutCubic
}
}
onVideoFramePainted: root.videoFramePainted()
}
Component.onCompleted: root.content = content
}