E.g. here it says, that the function returns int. I could not believe it. I checked headers and saw the correct value - jobject:

https://doc-snapshots.qt.io/qt6-dev/qnativeinterface-qandroidapplication.html#context


On 9/18/2021 6:54 PM, Alexander Dyagilev wrote:

Yeah, 6.2 documentation is quite buggy :)


On 9/18/2021 6:52 PM, Wesley Krasko wrote:
It works. I figured it out. The documentation for QMediaPlayer 6.2 is incorrect. I think Qt just copied it from 5.15 and didn't update it. It still shows using QMediaPlayer the old way when in fact stuff was broken out into QAudioOutput, QVideoOutput, etc. So now, you must first get the QAudioOutput of the QMediaPlayer and then you can do setVolume, setMuted, etc. The docs need updating. This is no longer how it works: https://doc-snapshots.qt.io/qt6-6.2/qmediaplayer.html#details <https://doc-snapshots.qt.io/qt6-6.2/qmediaplayer.html#details>

On Sat, Sep 18, 2021 at 5:51 AM Alexander Dyagilev <alervd...@gmail.com <mailto:alervd...@gmail.com>> wrote:

    Hello,

    It seems you just did not install it. See Additional modules
    section in the online installer.

    Works fine for me.

    On 9/17/2021 1:45 AM, Wesley Krasko wrote:
    Hi. We have been closely monitoring Qt 6.2 releases as we will
    need to create unified builds of our apps ASAP.
    For the longest time the thing that stopped us from compiling
    has been QMediaPlayer missing basic functions. For example,
    setVolume and setMuted. I have been grabbing updates as they
    come out thinking at some point they wouldn't be, since the
    documentation for QMediaPlayer 6 still shows these function
    calls. This is concerning that they are still missing in the RC.
    Can anyone shed some light on this?
    I also get "no type named 'State'" errors but I see that has
    just changed to another name so that's no big deal. But, it is
    also missing volume()

-- Wes Krasko
    www.worldwidewes.com <http://www.worldwidewes.com>
    www.kraskofamily.com <http://www.kraskofamily.com>
    "Stay away from negative people. They have a problem for every
    solution."


    _______________________________________________
    Interest mailing list
    Interest@qt-project.org  <mailto:Interest@qt-project.org>
    https://lists.qt-project.org/listinfo/interest  
<https://lists.qt-project.org/listinfo/interest>



--
Wes Krasko
www.worldwidewes.com <http://www.worldwidewes.com>
www.kraskofamily.com <http://www.kraskofamily.com>
"Stay away from negative people. They have a problem for every solution."

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to