Commit bbeb927a authored by Ghislain MARY's avatar Ghislain MARY

Prevent reconfiguring video stream two times in a row when rotating the device.

parent af7ce026
......@@ -184,7 +184,10 @@ namespace ms2_tester
break;
}
MS2Tester.Instance.setOrientation(degrees);
if (MS2Tester.Instance.getOrientation() != degrees)
{
MS2Tester.Instance.setOrientation(degrees);
}
}
......
......@@ -26,6 +26,7 @@ namespace ms2_tester_runtime_component
void uninitVideo();
void startVideoStream(Platform::Object^ CaptureElement, Platform::Object^ MediaElement, Platform::String^ camera, Platform::String^ codec, Platform::String^ videoSize, unsigned int frameRate, unsigned int bitRate);
void stopVideoStream();
int getOrientation() { return _deviceRotation; }
void setOrientation(int degrees);
static property MS2Tester^ Instance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment