Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    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

  2. #2
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    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.

  3. #3
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    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

  4. #4
    Nokia Developer Moderator Symbian_Neil's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,152
    Quote Originally Posted by prajnaranjan.das View Post
    I have tried a lot but not succeed yet.Can you please tell how should I play it....
    Check this article http://wiki.forum.nokia.com/index.ph...be_video_in_Qt
    - Neil R.Bhasme -

    Twitter: @Symbian_Neil

  5. #5
    Nokia Developer Moderator Symbian_Neil's Avatar
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,152
    Another way could be
    Code:
    #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();
    }
    Dunno if there are better and more efficient ways to do it..am new to this too
    - Neil R.Bhasme -

    Twitter: @Symbian_Neil

  6. #6
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    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

  7. #7
    Regular Contributor jakoskin's Avatar
    Join Date
    Sep 2008
    Posts
    286
    Quote Originally Posted by Symbian_Neil View Post
    Another way could be
    Code:
    #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();
    }
    Dunno if there are better and more efficient ways to do it..am new to this too
    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.

  8. #8
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    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

  9. #9
    Regular Contributor jakoskin's Avatar
    Join Date
    Sep 2008
    Posts
    286
    Quote Originally Posted by prajnaranjan.das View Post
    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...
    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.

  10. #10
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    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

  11. #11
    Registered User Sorcery-ltd's Avatar
    Join Date
    Dec 2006
    Posts
    2,280
    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?

  12. #12
    Registered User prajnaranjan.das's Avatar
    Join Date
    Dec 2010
    Location
    Delhi,INDIA
    Posts
    25
    Already tried in real NOKIA N8 mobile phone but still facing the same problem.....
    Prajnaranjan Das

    e mail: prajnaranjan.das@gmail.com

Similar Threads

  1. Playing Youtube videos in Java Apps
    By scharffc in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-06-06, 09:46
  2. What are the extensions to stream native videos and play device videos in FL 3.0?
    By supriyaakg in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2010-04-16, 06:34
  3. Replies: 2
    Last Post: 2009-01-16, 14:57
  4. how to play multiple videos in same form.
    By atiqe in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-05-21, 07:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved