Youtube in QWebFrame
-
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
-
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.
-
Hi,
i want to render that iframe in textedit like yahoo messenger does
-
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
-
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?