Results 1 to 2 of 2

Thread: Accessing IPCamera from QWebkit

  1. #1
    Join Date
    Jan 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Accessing IPCamera from QWebkit

    Hi,

    I'm trying to access my IP camera via QWebkit.

    The camera provides a web interface to set the camera setting and do operations like pan/tilt. The camera is a FOSCAM ( FI8908W ) camera. the web interface has 2 logins - one for activeX supported browser (IExplorer) and Server Push mode for Browsers like
    Chrome , Safari , Firefox

    below is a screen capture of the web interface

    login window.jpg
    camera_control_webpage.jpg


    I'd like to intergrate this web interface into my QT Gui by using QWebkit and am not having much luck.

    I manage to login through my gui. but when I do the video stream will not show (I see a blue ? box where the video should be).and the buttons are not responsive (e.g. pan/tilt buttons etc). But the funny thing is if I view the url in Chrome it works beautifully. Isn't chrome based on Webkit ?

    My code so far is very simple. I created a project in QTCreator. Inserted a QWebview object into my form. then entered the IP (192.x.x.x) in the object property box. I get as far as login but I see no video.

    Qt Code:
    1. MainWindow::MainWindow(QWidget *parent) :
    2. QMainWindow(parent),
    3. ui(new Ui::MainWindow)
    4. {
    5.  
    6. ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled,true);
    7. ui->webView->settings()->setAttribute(QWebSettings::JavaEnabled,true);
    8. ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled,true);
    9. ui->webView->settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows,true);
    10. ui->webView->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled,true);
    11. ui->webView->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
    12. }
    13.  
    14. MainWindow::~MainWindow()
    15. { delete ui;}
    To copy to clipboard, switch view to plain text mode 

    any help would be appreciated

    Cheers
    esa

  2. #2
    Join Date
    Jan 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Accessing IPCamera from QWebkit

    Bump ..


    Anyone ?

Similar Threads

  1. Bus error on QWebkit
    By geoffroylaca in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 24th August 2011, 11:13
  2. QWebKit download manager?
    By jinyaan in forum Newbie
    Replies: 0
    Last Post: 20th December 2010, 19:59
  3. Hacking QWebkit
    By qtfeeder in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2009, 17:54
  4. performance of QWebKit() in QGraphicsProxyWidget
    By wagmare in forum Qt Programming
    Replies: 11
    Last Post: 8th December 2008, 10:26
  5. Filling forms with QWebKit
    By physicistjedi in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2008, 18:50

Tags for this Thread

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.