Results 1 to 2 of 2

Thread: will this piece of code related to phonon works?

  1. #1

    Default will this piece of code related to phonon works?

    i tried this pice of code related to play a video file in Qt but it didn't work for me.
    will this really work out or should we do any workaround?
    if so , please let me know how can we do it.
    Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory);
    //player->load("Automotive_Trailer.wmv");
    // or
    player->load(Phonon::MediaSource("Automotive_Trailer.wmv" ));
    player->play();
    player->show();

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: will this piece of code related to phonon works?

    If your backend for phonon (if you're using Linux it's either gstreamer of xine) supports this particular codec, it should work.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. execute a small piece of javascript code ?
    By cornucopia in forum Qt Webkit
    Replies: 2
    Last Post: 28th February 2012, 14:00
  2. Replies: 3
    Last Post: 11th December 2009, 17:13
  3. How to execute a small piece of javascript code ?
    By cornucopia in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2009, 10:03
  4. Code works with 4.3.3 but not with 4.4.0 (both commercial)
    By akshay_blitz in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2008, 00:14
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.