RenderSession QML Type

The RenderSession manages the current rendering session. More...

Import Statement: import MediaFX

Properties

Attached Properties

Methods

Detailed Description

Internally, RenderSession drives rendering the set of active MediaClips. It also exposes access to the current rendering time and allows the session to be shut down, see RenderSession::endSession. The current session can be accessed using the RenderSession::session attached property.

Property Documentation

currentRenderTime : interval

The current frame interval being rendered, independent of any individual MediaClip.


Attached Property Documentation

RenderSession.session : RenderSession

This property holds the current RenderSession. This allows the session to be accessed from any QML object.


Method Documentation

interval createInterval(int start, int end)

Create a new interval using start and end times (milliseconds).

Item {
    property interval myInterval: RenderSession.createInterval(2000, 3000)
}

void endSession()

This method must be called to end the encoding session and exit. Typically this would be connected to the end of a MediaClip:

MediaClip {
    id: clip
    source: Qt.resolvedUrl("video.mp4")
    Component.onCompleted: {
        clip.clipEnded.connect(RenderSession.endSession);
    }
}

void pauseRendering()

Pause rendering to allow for asynchronous processing. resumeRendering must be called as many times as pauseRendering.


void resumeRendering()

Resume rendering after asynchronous processing. resumeRendering must be called as many times as pauseRendering.