Results 1 to 3 of 3

Thread: Play Video On Symbian

  1. #1
    Join Date
    Jul 2011
    Location
    Gurgaon
    Posts
    25
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Play Video On Symbian

    Can anybody tell me that how to play video in symbian Qt ..........
    I am trying to write a code in Qt Framework ...... But facing some problems...
    so plz guide me how can I complete my task......

    Advance Thanks For any Help

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Play Video On Symbian

    But facing some problems...
    this does not help us to help you, if you don't explain what have you already tried and what exact errors you get.

  3. #3
    Join Date
    Jul 2011
    Location
    Gurgaon
    Posts
    25
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: Play Video On Symbian

    What I have tried is
    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include <qmediaplayer.h>
    3. #include <qmediaplaylist.h>
    4. #include <qmediaplaylistcontrol.h>
    5. #include <qvideowidget.h>
    6. #include <QMediaPlaylistWriter>
    7. #include <qmediaplaylistioplugin.h>
    8. #include <qmediastreamscontrol.h>
    9. #include <qmediaservice.h>
    10. #include <qmediaplaylistprovider.h>
    11. #include <qmediaplaylistsourcecontrol.h>
    12. #include <mainwindow.h>
    13.  
    14. int main(int argc, char *argv[])
    15. {
    16. QApplication app(argc, argv);
    17.  
    18. MainWindow mainWindow;
    19.  
    20.  
    21. QMediaPlayer *mediaPlayer = new QMediaPlayer;
    22. QMediaPlaylist *list = new QMediaPlaylist(mediaPlayer);
    23. list->addMedia(QUrl("Song"));
    24.  
    25. QVideoWidget *widget = new QVideoWidget(&mainWindow);
    26.  
    27. widget->show();
    28. mediaPlayer->play();
    29.  
    30. mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
    31. mainWindow.showExpanded();
    32. return app.exec();
    33. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 19
    Last Post: 13th May 2013, 11:17
  2. play a video from youtube
    By graciano in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2011, 07:17
  3. How to play youtube videos in Symbian device
    By prajnaranjan.das in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 2nd February 2011, 12:45
  4. Video play issue
    By baluk in forum Newbie
    Replies: 3
    Last Post: 4th December 2010, 13:43
  5. Play video in QT4 application
    By carlosmele in forum Qt Programming
    Replies: 3
    Last Post: 14th April 2009, 22:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.