Skip to content

Commit

Permalink
simplify sequence.qml, don't need parent Item
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Jan 19, 2024
1 parent e4fa997 commit 2a5b516
Showing 1 changed file with 41 additions and 45 deletions.
86 changes: 41 additions & 45 deletions tests/qml/sequence.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,49 @@ import QtQuick.Effects
import QtMultimedia
import MediaFX

Item {
MediaSequence {
id: sequence
MediaSequence {
id: sequence

anchors.fill: parent

mediaMixers: [
CrossFadeMixer {
},
WipeMixer {
direction: WipeMixer.Direction.Down
blindsEffect: 0.05
},
WipeMixer {
direction: WipeMixer.Direction.Right
transitionWidth: 2.0
},
WipeMixer {
direction: WipeMixer.Direction.Left
blindsEffect: 0.05
}
]

Component.onCompleted: {
sequence.mediaSequenceEnded.connect(MediaManager.finishEncoding);
mediaMixers: [
CrossFadeMixer {
},
WipeMixer {
direction: WipeMixer.Direction.Down
blindsEffect: 0.05
},
WipeMixer {
direction: WipeMixer.Direction.Right
transitionWidth: 2.0
},
WipeMixer {
direction: WipeMixer.Direction.Left
blindsEffect: 0.05
}
]

MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/blue-320x180-30fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/red-320x180-15fps-8s.mp4")
}
MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/green-320x180-15fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/red-160x120.png")
}
MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/yellow-320x180-15fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/edjustforyou-320x180-15fps-5.2s.mp4")
}
Component.onCompleted: {
sequence.mediaSequenceEnded.connect(MediaManager.finishEncoding);
}

MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/blue-320x180-30fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/red-320x180-15fps-8s.mp4")
}
MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/green-320x180-15fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/red-160x120.png")
}
MediaClip {
source: Qt.resolvedUrl("../fixtures/assets/yellow-320x180-15fps-3s.mp4")
}
MediaClip {
endTime: 3000
source: Qt.resolvedUrl("../fixtures/assets/edjustforyou-320x180-15fps-5.2s.mp4")
}
}

0 comments on commit 2a5b516

Please sign in to comment.