Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2
-
None
-
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