public bool Stream(string cameraAttributesFilePath)
{
SetCameraAttributes(cameraAttributesFilePath);
imageWindow.WriteToConsole("Applied camera attributes from " + cameraAttributesFilePath);
imageWindow.WriteToConsole("Streaming from camera");
if (state == CameraState.FREE)
{
state = CameraState.STREAMING;
Thread streamThread = new Thread(new ThreadStart(stream));
streamThread.Start();
return true;
}
else
{
return false;
}
}