Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get IP camera stream with Phonon

Get IP camera stream with Phonon

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 183 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Creatorczyk
    wrote on last edited by
    #1

    Hi,

    I use Qt4.8.6 and Qml to develop my app. I want to dispaly in QML view from camera. How could I do that with Phonon? In VideoPlayer I found member VideoWidget class, so I can do something like:

        login = "admin";
        password = "1234";
        ip = "192.168.2.106";
        port = 80;
    
        QUrl url("rtsp://" + ip + ":" + QString::number(port) +"/ipcam_h264.sdp");
        url.setHost(login);
        url.setPassword(password);
    
       videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory, NULL);
       connect(videoPlayer, SIGNAL(finished()), videoPlayer, SLOT(deleteLater()));
       videoPlayer->play(url);
    
       QImage image = videoPlayer()->videoWidget()->snapshot();
    

    And try to display it, but there are no any signal like "snapshotChanged()" to refresh display. How could I correctly implement display video from IP camera to my Qml?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved