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

QML reads back -1 from QMediaFormat gadget

    XMLWordPrintable

    Details

    • Commits:
      acc8628c3b4725170a1d6444f4c24118be49779d (qt/qtmultimedia/dev) 0909959835b8f372fe298de66e2be5ecf64287c2 (qt/qtmultimedia/6.2)

      Description

      QML read gadget value on MediaRecorder.MediaFormat always return -1

      The minimum example:

      import QtQuick
      import QtMultimedia
      Item {​​​​​    
          MediaEncoder {​​​​​  
              id: encoder        
              Component.onCompleted: {​
                  console.log(encoder.mediaFormat.audioCodec)
                  encoder.mediaFormat.audioCodec = 7
                  console.log(encoder.mediaFormat.audioCodec)
              }
          }
      }​​​​​
      

       
      The output is
      -1
      -1
      The debugger shows that the setter and getter on QMediaFormat set and get correct value: 7

       

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            piotr Piotr Srebrny
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes