Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-windows10
Commits
7aade030
Commit
7aade030
authored
Apr 27, 2015
by
Ghislain MARY
Browse files
Add LinphoneMediaDirection wrapper.
parent
03c51c98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
Core/Enums.h
Core/Enums.h
+11
-0
Core/LinphoneCallParams.cpp
Core/LinphoneCallParams.cpp
+24
-0
Core/LinphoneCallParams.h
Core/LinphoneCallParams.h
+18
-0
No files found.
Core/Enums.h
View file @
7aade030
...
...
@@ -236,5 +236,16 @@ namespace Linphone
ReflexiveConnection
=
4
,
RelayConnection
=
5
};
/// <summary>
/// Indicates for a given media the stream direction.
/// </summary>
public
enum
class
MediaDirection
:
int
{
Inactive
=
0
,
SendOnly
=
1
,
RecvOnly
=
2
,
SendRecv
=
3
};
}
}
\ No newline at end of file
Core/LinphoneCallParams.cpp
View file @
7aade030
...
...
@@ -103,6 +103,30 @@ Windows::Foundation::Size Linphone::Core::LinphoneCallParams::ReceivedVideoSize:
return
size
;
}
Linphone
::
Core
::
MediaDirection
Linphone
::
Core
::
LinphoneCallParams
::
AudioDirection
::
get
()
{
API_LOCK
;
return
(
Linphone
::
Core
::
MediaDirection
)
linphone_call_params_get_audio_direction
(
this
->
params
);
}
void
Linphone
::
Core
::
LinphoneCallParams
::
AudioDirection
::
set
(
Linphone
::
Core
::
MediaDirection
value
)
{
API_LOCK
;
linphone_call_params_set_audio_direction
(
this
->
params
,
(
LinphoneMediaDirection
)
value
);
}
Linphone
::
Core
::
MediaDirection
Linphone
::
Core
::
LinphoneCallParams
::
VideoDirection
::
get
()
{
API_LOCK
;
return
(
Linphone
::
Core
::
MediaDirection
)
linphone_call_params_get_video_direction
(
this
->
params
);
}
void
Linphone
::
Core
::
LinphoneCallParams
::
VideoDirection
::
set
(
Linphone
::
Core
::
MediaDirection
value
)
{
API_LOCK
;
linphone_call_params_set_video_direction
(
this
->
params
,
(
LinphoneMediaDirection
)
value
);
}
Linphone
::
Core
::
LinphoneCallParams
::
LinphoneCallParams
(
::
LinphoneCallParams
*
call_params
)
:
params
(
call_params
)
{
...
...
Core/LinphoneCallParams.h
View file @
7aade030
...
...
@@ -102,6 +102,24 @@ namespace Linphone
Windows
::
Foundation
::
Size
get
();
}
/// <summary>
/// Set the audio stream direction.
/// </summary>
property
MediaDirection
AudioDirection
{
MediaDirection
get
();
void
set
(
MediaDirection
value
);
}
/// <summary>
/// Set the video stream direction.
/// </summary>
property
MediaDirection
VideoDirection
{
MediaDirection
get
();
void
set
(
MediaDirection
value
);
}
private:
friend
class
Linphone
::
Core
::
Utils
;
friend
ref
class
Linphone
::
Core
::
LinphoneCore
;
...
...
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