Important: Please read the Qt Code of Conduct -

Qt5 QML Video and MediaPlayer Share Audio?

  • I have found the audio that plays on the Video element and audio that is played by MediaPlayer appear to be sharing properties, as if this audio is statically shared across both element types (at least on Windows 7). As an example, the following QML file does not behave as expected:

    @import QtQuick 2.0
    import QtMultimedia 5.0

    Rectangle {
    width: 360
    height: 360

        id: video
        volume: 0.1
        source: "yoursamplevideo.wmv"
        anchors.fill: parent
        id: sound
        source: "yoursamplesound.mp3"
        volume: 1.0
    MouseArea {
        anchors.fill: parent
        onClicked: sound.muted = !sound.muted
    Component.onCompleted:  {


    In the above example you would expect to mute ONLY the second audio channel by clicking, but instead both audio gets muted / unmuted AND ONLY SOME OF THE TIME (across multiple program executions). Also, Video and MediaPlayer have different volume levels specified but will play at the same volume level.

    Is this something that is only happening on my end, is it a bug in Qt5, or is this intended behavior?

  • Is there any progress on that? I have the same problem..

Log in to reply