QCamera streaming is not starting in mac 10.8.5
Unsolved
General and Desktop
-
Hello All,
I am creating an application in QT, And I have functionality to stream USB camera, I am able to see streaming in mac os version on 10.9.x and above, but I am not able to view streaming in 10.8.5here is my code for streaming
void CameraManager::setCamera(const QCameraInfo &cameraInfo) { delete m_camera; m_camera = new QCamera(cameraInfo); if(m_camera) { m_isConnected = true; m_camera->setViewfinder(m_cameraView); m_camera->load(); connect(m_camera, SIGNAL(error(QCamera::Error)), this, SLOT(displayCameraError())); //qDebug()<<" Resolution : "<< m_camera->supportedViewfinderResolutions(); delete m_finderSettings; m_finderSettings = new QCameraViewfinderSettings(); if(m_finderSettings) { // Set default camera Resolution m_finderSettings->setResolution(DEFAULT_RESOLUTION); m_camera->setViewfinderSettings(*m_finderSettings); m_camera->start(); } }
can anyone let me know what I am doing wrong.
-
Hi and welcome to devnet,
Which version of Qt are you using ?
What device are you trying to access ?