Results 1 to 4 of 4

Thread: RTSP Streaming

  1. #1
    Join Date
    Nov 2010
    Posts
    48
    Thanks
    5
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default RTSP Streaming

    Hi,
    I am trying to stream RTSP link
    I tried this code but not working, but the same code is working for other file streaming link wma, mp3, etc.
    Here is the code
    Qt Code:
    1. void MainWindow::on_pushButton_clicked()
    2. {
    3.  
    4.  
    5. QString url = "rtsp://rm.bbc.co.uk/radio2/r2online_id.rm";
    6.  
    7. QWidget *dummy = new QWidget();
    8. dummy->setDisabled(true);
    9. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
    10. Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(dummy);
    11. Phonon::createPath(mediaObject, videoWidget);
    12. Phonon::MediaSource source = Phonon::MediaSource(url);
    13. mediaObject->setCurrentSource(source);
    14. mediaObject->play();
    15.  
    16.  
    17.  
    18. }
    To copy to clipboard, switch view to plain text mode 


    Please suggest me.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: RTSP Streaming

    Read about "Backends" and "Querying Backends for Support" here:
    http://doc.trolltech.com/4.7/phonon-...honon-overview
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2010
    Posts
    48
    Thanks
    5
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: RTSP Streaming

    Quote Originally Posted by high_flyer View Post
    Read about "Backends" and "Querying Backends for Support" here:
    http://doc.trolltech.com/4.7/phonon-...honon-overview
    Got you means it will not work now.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: RTSP Streaming

    No, I meant you should READ what is in the link - THERE it will tell you how to know what can work and what not, why, and how to make it work if it doesn't.
    What you can play is dependent on the backends that you have on your system.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 4
    Last Post: 28th December 2010, 04:13
  2. Video streaming
    By somnathbanik in forum Newbie
    Replies: 9
    Last Post: 4th November 2010, 10:38
  3. RTSP support in Qt
    By keyur259 in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2010, 06:17
  4. Video streaming with QT4
    By QiT in forum Qt Programming
    Replies: 1
    Last Post: 10th April 2008, 18:09

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.