Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Hide video in Qmediaplayer

    General and Desktop
    3
    7
    1170
    Loading More Posts
    • 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.
    • H
      herculis last edited by

      How to hide video in Qmediaplayer and just play the audio

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        AFAIK, QMediaPlayer doesn't have any GUI, you would have to set in on a QVideoWidget to get the video on screen.

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

        1 Reply Last reply Reply Quote 0
        • H
          herculis last edited by

          ya i used Qvideowidget now i want that to hide the video for some time and meanwhile only audio will play for some time and after that again the video should appear on screen if it can be done with push button it will be great
          Please help
          Thanks

          1 Reply Last reply Reply Quote 0
          • A
            andreyc last edited by

            What if you will use QVideoWidget::hide() and QVideoWidget::show().

            1 Reply Last reply Reply Quote 0
            • H
              herculis last edited by

              ya but i need to hide the screen while it playing the video
              when i use QVideoWidget::hide() it hides the QVideoWidget after i stop the video and play it again it then it hides QVideoWidget.
              I want when i am playing the a video the QVideoWidget hides or goes black so that i cant see the video but audio show play.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Can you show how you are doing it currently ?

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

                1 Reply Last reply Reply Quote 0
                • H
                  herculis last edited by

                  its very big code i cant post it here
                  can u suggest me ideas plz
                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post