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