Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Media Player playing : bool is returing wrong value
Forum Updated to NodeBB v4.3 + New Features

Media Player playing : bool is returing wrong value

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 300 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Allstar12345
    wrote on last edited by
    #1

    I'm not sure if I'm just loosing the plot here, but I have a MediaPlayer

     MediaPlayer{
            id: audiotest
            loops: MediaPlayer.Infinite
            onPlayingChanged: console.log(playing)
            audioOutput: AudioOutput {
                volume: 0.8
            }
        }
    

    Now the playing bool is returning true when the media is stopped and false when the media is playing like it's backwards, playbackState seems to be working correctly but not this.

    Qt 6.6.0 Windows 11 22621

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What do you get with the playbackState property ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What do you get with the playbackState property ?

        A Offline
        A Offline
        Allstar12345
        wrote on last edited by
        #3

        @SGaist It seems to be returning PlayingState and StoppedState correctly when using playbackState

        GrecKoG 1 Reply Last reply
        0
        • A Allstar12345

          @SGaist It seems to be returning PlayingState and StoppedState correctly when using playbackState

          GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by
          #4

          @Allstar12345 what if you do Qt.callLater(console.log(playing)) instead?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved