Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37883

QML Video muting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.2.1
    • Multimedia
    • None
    • Kubuntu 13.10 x64
      KDELibs 4.11.5

    Description

      I have a video component and video file and i need to play only video without any sound.
      So, i used "muted" property to switch off volume.
      But after first playing from begin to end (from "play" to "stop") "muted" is changed to false and i can't change it any more.
      This is my code:

      Video {
      source: "file:///home/user/video.mp4"
      muted: true
      onMutedChanged: {
      print("mutedBefore:" + muted);
      muted = Qt.binding(function ()

      {return true;}

      );
      print("mutedAfter:" + muted);
      }
      onPlaying:

      { print("Playing"); }

      onStopped:

      { print("Stopped"); }

      }

      And this is the log:

      mutedBefore:true
      mutedAfter:true
      mutedBefore:true
      mutedAfter:true
      Playing
      Stopped
      Playing
      mutedBefore:false
      mutedAfter:false
      Stopped

      As the line: properties "muted" and "volume" unchangeable after video is stopped by itself at the end.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            roumed Roman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes