Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Youtube in QWebFrame
Forum Updated to NodeBB v4.3 + New Features

Youtube in QWebFrame

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 3 Posters 2.2k 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.
  • Z Offline
    Z Offline
    zolidznake
    wrote on last edited by
    #1

    Hello

    i am working on a client chat server and i want to embed youtube links in my application.

    is there a way in wich i can do this ?

                                                Thank you
    
    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Hi,

      Do you plan to embed only URL to some specific video or you would like to have possibility to playback some video.
      In the second case, you can use QWebFrame::setHtml and as a QString you could pass following information

      @
      <html>
      <body>
      <iframe width="420" height="315" src="http://www.youtube.com/embed/xI5HmmizYwY" frameborder="0" allowfullscreen></iframe>
      </body>
      </html>
      @

      If I did not understand yours' problem well, please provide more details.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zolidznake
        wrote on last edited by
        #3

        Hi,

        i want to render that iframe in textedit like yahoo messenger does

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

          Please read "this article to learn how to embed a youtube video in a QWebView":http://qt-project.org/wiki/Embed_YouTube_Video_in_QWebView

          http://anavi.org/

          1 Reply Last reply
          0
          • G Offline
            G Offline
            guziemic
            wrote on last edited by
            #5

            I am not aware how does yahoo messenger does it because I am not a user of this communicator.
            In Qt - for instance QTextEdit supports HTML so maybe you could utilize it.

            In which object are you planning to display text conversation?

            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