Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
bbeb927a
Commit
bbeb927a
authored
Aug 26, 2015
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent reconfiguring video stream two times in a row when rotating the device.
parent
af7ce026
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
build/windows10/ms2-tester/VideoPage.xaml.cs
build/windows10/ms2-tester/VideoPage.xaml.cs
+4
-1
tester/mediastreamer2_tester_windows.h
tester/mediastreamer2_tester_windows.h
+1
-0
No files found.
build/windows10/ms2-tester/VideoPage.xaml.cs
View file @
bbeb927a
...
...
@@ -184,7 +184,10 @@ namespace ms2_tester
break
;
}
MS2Tester
.
Instance
.
setOrientation
(
degrees
);
if
(
MS2Tester
.
Instance
.
getOrientation
()
!=
degrees
)
{
MS2Tester
.
Instance
.
setOrientation
(
degrees
);
}
}
...
...
tester/mediastreamer2_tester_windows.h
View file @
bbeb927a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment