diff --git a/tests/fixtures b/tests/fixtures index c737deb..fcb0a54 160000 --- a/tests/fixtures +++ b/tests/fixtures @@ -1 +1 @@ -Subproject commit c737debc0fbd080b1b587057d07dd872091cf686 +Subproject commit fcb0a54b67ce9d7afc65da6147976318b6b94b94 diff --git a/tests/qml/subtitles.qml b/tests/qml/subtitles.qml new file mode 100644 index 0000000..981f515 --- /dev/null +++ b/tests/qml/subtitles.qml @@ -0,0 +1,31 @@ +import QtQuick +import MediaFX + +Item { + id: root + + MediaClip { + id: videoClip + + source: Qt.resolvedUrl("../fixtures/assets/tr-subtitles-320x180-29.97fps-8s.mp4") + audioRenderer: AudioRenderer {} + + Component.onCompleted: { + videoClip.clipEnded.connect(root.RenderSession.session.endSession); + } + } + + VideoRenderer { + id: topLeftVideo + transform: Translate { x: -topLeftVideo.width / 4 } + anchors.horizontalCenter: root.horizontalCenter + mediaClip: videoClip + } + VideoRenderer { + id: bottomRightVideo + transform: Translate { x: bottomRightVideo.width / 4 } + anchors.horizontalCenter: root.horizontalCenter + anchors.top: topLeftVideo.bottom + mediaClip: videoClip + } +}