Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to play youtube video with Qt 4.8? (downloaded video or url)

How to play youtube video with Qt 4.8? (downloaded video or url)

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 5.7k Views 1 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.
  • M Offline
    M Offline
    MaximAlien
    wrote on last edited by
    #1

    Hello,

    I'm having problems playing video downloaded from Youtube. I tried Qt example VideoDemo, but most of video formats are not supported (probably some missing correct codecs).

    What solution would you suggest? Maybe simply load video in QWebView and then play (using HTML5)?

    Thanks in advance.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Heya ~MaximAlien

      There are two different solutions:

      • Use WebKit here (QWebView, I hope), but it requires internet connection
      • Use Phonon playback here, I hope it should be okay
      1 Reply Last reply
      0
      • M Offline
        M Offline
        MaximAlien
        wrote on last edited by
        #3

        Thanks for answer tucnak.

        Tried Phonon, but there are issues with codecs, my app is cross-platform, so I need simple and stable solution,

        I think I'll try HTML5 with WebKit, Hope it'll work.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          [quote author="MaximAlien" date="1374000746"]Thanks for answer tucnak.

          Tried Phonon, but there are issues with codecs, my app is cross-platform, so I need simple and stable solution,

          I think I'll try HTML5 with WebKit, Hope it'll work.[/quote]

          Hm, codec problem can be solved with converting the video to available formats. Phonon is quite cross-platform, can't get point.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            You can also allow to use WebKit plugins (Netscape Plugin) on currently running system (i.e. Flash)....

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MaximAlien
              wrote on last edited by
              #6

              Thanks for suggestion Peppy. I'll try Flash too.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                leon.anavi
                wrote on last edited by
                #7

                Have a look at the article "Embed YouTube Video in QWebView":http://qt-project.org/wiki/Embed_YouTube_Video_in_QWebView at our wiki.

                http://anavi.org/

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  MaximAlien
                  wrote on last edited by
                  #8

                  Thanks for this article leon.anavi! I'll definitely try it.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    leon.anavi
                    wrote on last edited by
                    #9

                    [quote author="MaximAlien" date="1374044338"]Thanks for this article leon.anavi! I'll definitely try it.[/quote]

                    You are welcome. The article is a bit older so it has been written and tested with Qt 4.

                    http://anavi.org/

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MaximAlien
                      wrote on last edited by
                      #10

                      I use Qt 5.0.2 msvc for testing and when page was loaded it says that "The video is currently unavailable".

                      Probably I'll try HTML5 for this.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MaximAlien
                        wrote on last edited by
                        #11

                        That's strange, I also tested YouTube View Example from Examples in Qt 5.0.2 and the same issue occurs.

                        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