MediaSequence QML Type

Plays a sequence of MediaSequenceClip components in order, with MediaTransition transitions between them. More...

Import Statement: import MediaFX
Inherits:

Item

Properties

Detailed Description

// Copyright (C) 2024 Andrew Wason
// SPDX-License-Identifier: GPL-3.0-or-later

import QtQuick
import QtQuick.Effects
import QtMultimedia
import MediaFX
import MediaFX.Transition as T

MediaSequence {
    id: sequence

    Component.onCompleted: {
        sequence.mediaSequenceEnded.connect(sequence.RenderSession.session.endSession);
    }

    Component {
        MediaSequenceClip {
            source: Qt.resolvedUrl("../fixtures/assets/blue-320x180-30fps-3s-awb44100.nut")
            endTransition: T.CrossFade {}
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/red-320x180-15fps-8s-kal1624000.nut")
            endTransition: T.Wipe {
                direction: T.Wipe.Direction.Down
                blindsEffect: 0.05
            }
        }
    }
    Component {
        MediaSequenceClip {
            source: Qt.resolvedUrl("../fixtures/assets/green-320x180-15fps-3s-kal44100.nut")
            endTransition: T.Wipe {
                direction: T.Wipe.Direction.Right
                softness: 2.0
            }
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/red-160x120.png")
            endTransition: T.Wipe {
                direction: T.Wipe.Direction.Left
                blindsEffect: 0.05
            }
        }
    }
    Component {
        MediaSequenceClip {
            source: Qt.resolvedUrl("../fixtures/assets/yellow-320x180-15fps-3s-slt16000.nut")
            endTransition: T.PageCurl {}
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/edjustforyou-320x180-15fps-5.2s-44100.nut")
            audioRenderer: AudioRenderer {}
            endTransition: Demo3DTransition {}
        }
    }
    Component {
        MediaSequenceClip {
            source: Qt.resolvedUrl("../fixtures/assets/edquestions-320x180-15fps-2.4s-44100.nut")
            audioRenderer: AudioRenderer {}
            endTransition: T.SamKolderWipe {}
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/cosmoswolf-320x180-15fps-4.1s-44100.nut")
            audioRenderer: AudioRenderer {}
            endTransition: T.Displacement {
                displacementMapSource: Qt.resolvedUrl("../fixtures/assets/displacement.svg")
            }
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/ednotsafe-320x180-15fps-1.53s-44100.nut")
            audioRenderer: AudioRenderer {}
            endTransition: T.TextDisplacement {}
        }
    }
    Component {
        MediaSequenceClip {
            endTime: 3000
            source: Qt.resolvedUrl("../fixtures/assets/bbbjumprope-320x180-15fps-5.5s-44100.nut")
            audioRenderer: AudioRenderer {}
        }
    }
}

See also MediaTransition.

Property Documentation

currentTransition : MediaTransition

The currently active MediaTransition


fillMode : enumeration


mediaClips : Component [default]

The sequence of MediaSequenceClip components to play in order.


orientation : int