Qt Forum

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

    Call for Presentations - Qt World Summit

    Unsolved QtVLC with Qt 4.8.4

    General and Desktop
    3
    7
    791
    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.
    • Venkatesh V
      Venkatesh V last edited by

      Hello all,

      I want to use QtVLC with Qt 4.8.4, please help me with the procedure to configure.

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

        Hi
        Do you mean this one ?
        https://github.com/Orochimarufan/QtVlc
        Its for Qt5 only. ( Says so on site)

        Or have you found another one with same name ?

        or do you mean
        https://vlc-qt.tano.si/ ?

        1 Reply Last reply Reply Quote 1
        • Venkatesh V
          Venkatesh V last edited by

          @mrjj thanks for the reply

          I mean to say that, i want to use vlc mediaplayer in Qt4.8.4. will it possible to use or not?

          mrjj 1 Reply Last reply Reply Quote 1
          • mrjj
            mrjj Lifetime Qt Champion @Venkatesh V last edited by mrjj

            hi

            vlc mediaplayer

            The actual application ??
            https://www.videolan.org/vlc/index.html

            Im not sure it supports embedding.

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

              @mrjj said in QtVLC with Qt 4.8.4:

              Im not sure it supports embedding.

              It does and it works very easy - it just needs a winId.

              Qt has to stay free or it will die.

              Venkatesh V 1 Reply Last reply Reply Quote 4
              • Venkatesh V
                Venkatesh V @Christian Ehrlicher last edited by

                @Christian-Ehrlicher
                Hi,
                Can you please share the steps to configure?

                1 Reply Last reply Reply Quote 1
                • Christian Ehrlicher
                  Christian Ehrlicher Lifetime Qt Champion last edited by

                  I more or less using the same stuff as here: https://wiki.videolan.org/LibVLC_SampleCode_Qt/
                  It's a little bit outdated, the init can be done easier nowadays

                    if (ui->outputWidget)
                    {
                  #if defined(Q_OS_WIN)
                      libvlc_media_player_set_hwnd(m_mPlayer, (HWND)ui->outputWidget->winId());
                  #elif defined(Q_OS_MAC)
                      libvlc_media_player_set_agl(m_mPlayer, ui->outputWidget->winId()) ;
                  #else //Linux
                      libvlc_media_player_set_xwindow(m_mPlayer, ui->outputWidget->winId());
                  #endif
                    }
                  

                  ui->outputWidget is a simple QWidget, the rest is not different then using plain libvlc.

                  Qt has to stay free or it will die.

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