Results 1 to 5 of 5

Thread: Playing a stream using phonon module

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Playing a stream using phonon module

    Hi i want to play a strem in qtopia core ( built for n800 - phonon module ) but i am not able to play it ... Works fine if the source is a file ....

    The code goes as follows

    Qt Code:
    1. MainWindow::MainWindow()
    2. {
    3. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
    4.  
    5. Phonon::AudioOutput *audioOutput =
    6. new Phonon::AudioOutput(Phonon::MusicCategory, this);
    7.  
    8. Phonon::createPath(mediaObject, audioOutput);
    9.  
    10. const QUrl url("http://www.example.com/stream");
    11.  
    12. mediaObject->setCurrentSource(url);
    13.  
    14. mediaObject->play();
    15.  
    16. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by jpn; 28th August 2008 at 08:57. Reason: missing [code] tags

Similar Threads

  1. Replies: 0
    Last Post: 5th August 2008, 10:54
  2. Is it possible to stream data from device with phonon ?
    By Elder Orb in forum Qt-based Software
    Replies: 0
    Last Post: 24th July 2008, 19:58
  3. Phonon video not playing
    By SidGBF in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2008, 15:30
  4. no phonon module :(
    By losiem in forum Installation and Deployment
    Replies: 2
    Last Post: 8th July 2008, 12:31

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
  •  
Qt is a trademark of The Qt Company.