I am actually trying to play a youtube link using NOKIA n8 Simulator .
Will be glad if someone give me any idea
I am actually trying to play a youtube link using NOKIA n8 Simulator .
Will be glad if someone give me any idea
Last edited by prajnaranjan.das; 2011-02-01 at 11:35.
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com
Do you care how it plays? Simplest thing to try would be to pass the URL to QDesktopServices.
You could also try the QMediaPlayer - I don't know if that supports the Flash video content on YouTube or not.
I have tried a lot but not succeed yet.Can you please tell how should I play it....
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com
Check this article http://wiki.forum.nokia.com/index.ph...be_video_in_Qt
- Neil R.Bhasme -
Twitter: @Symbian_Neil
Another way could be
Dunno if there are better and more efficient ways to do it..am new to this tooCode:#include <QtGui/QApplication> #include <QtWebKit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWebView view; view.load(QUrl("http://www.youtube.com/watch?v=GhTtsZATwBQ")); view.showMaximized(); return a.exec(); }![]()
- Neil R.Bhasme -
Twitter: @Symbian_Neil
Actually I had tried it before...Its showing youtube videos but when I clicks on any video from that only I can see a black screen .....Tell me any other way to play it.....Thanks for your reply
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com
Won't work in Symbian devices as there is no Flash NPAPI plugin in QtWebkit. Neither it works with HTML5 as there is no <video> -tag backend.
DesktopServices launching the browser is the easiest way. The other way with more control is to play using RTSP.
There is a nice example made by Antti Luoma for the first mobility competition http://wiki.forum.nokia.com/index.ph...ilityYouPlayer .
Last edited by jakoskin; 2011-02-01 at 15:58.
Thanks jakoskin for your help but when I am trying to run it, its showing some error..As I am new to Qt ,Can you please fix it for me.........Thanks for your reply...
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com
Hi, unfortunately I don't have time to check this. I know the project has worked so it is probably something small that has changed in QtMobility versions. It is a good exercise to fix, you get to know Qt lot more![]()
There is a lot of people here who want their youtube/vimeo etc videos getting played. One idea is to start a new community project to create the perfect player for webmedia. Make a start here https://projects.forum.nokia.com/home/ and get people to join in.
I tried a lot but this example is not working......Tell me any other way for this....
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com
I note from the top of the thread that you're using the N8 Simulator, not a real N8. I don't know whether or not the Qt Mobility backend for the simulator supports YouTube videos. Can you test on a real N8?
Already tried in real NOKIA N8 mobile phone but still facing the same problem.....
Prajnaranjan Das
e mail: prajnaranjan.das@gmail.com