Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
124
Issues
124
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
2d3d0353
Commit
2d3d0353
authored
Aug 03, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #13188: add video details to getCallDetails, if actively receiving video
parent
901db43b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
1 deletion
+39
-1
daemon/src/call.h
daemon/src/call.h
+1
-1
daemon/src/sip/sipcall.cpp
daemon/src/sip/sipcall.cpp
+10
-0
daemon/src/sip/sipcall.h
daemon/src/sip/sipcall.h
+4
-0
daemon/src/video/video_receive_thread.cpp
daemon/src/video/video_receive_thread.cpp
+15
-0
daemon/src/video/video_receive_thread.h
daemon/src/video/video_receive_thread.h
+1
-0
daemon/src/video/video_rtp_session.cpp
daemon/src/video/video_rtp_session.cpp
+7
-0
daemon/src/video/video_rtp_session.h
daemon/src/video/video_rtp_session.h
+1
-0
No files found.
daemon/src/call.h
View file @
2d3d0353
...
...
@@ -218,7 +218,7 @@ class Call : public Recordable {
unsigned
int
getLocalVideoPort
();
void
time_stop
();
std
::
map
<
std
::
string
,
std
::
string
>
getDetails
();
virtual
std
::
map
<
std
::
string
,
std
::
string
>
getDetails
();
static
std
::
map
<
std
::
string
,
std
::
string
>
getNullDetails
();
std
::
map
<
std
::
string
,
std
::
string
>
createHistoryEntry
()
const
;
virtual
bool
setRecording
();
...
...
daemon/src/sip/sipcall.cpp
View file @
2d3d0353
...
...
@@ -74,3 +74,13 @@ void SIPCall::answer()
setConnectionState
(
CONNECTED
);
setState
(
ACTIVE
);
}
std
::
map
<
std
::
string
,
std
::
string
>
SIPCall
::
getDetails
()
{
std
::
map
<
std
::
string
,
std
::
string
>
details
(
Call
::
getDetails
());
#ifdef SFL_VIDEO
videortp_
.
addReceivingDetails
(
details
);
#endif
return
details
;
}
daemon/src/sip/sipcall.h
View file @
2d3d0353
...
...
@@ -106,6 +106,10 @@ class SIPCall : public Call {
pjsip_inv_session
*
inv
;
private:
// override of Call::getDetails
std
::
map
<
std
::
string
,
std
::
string
>
getDetails
();
virtual
void
answer
();
NON_COPYABLE
(
SIPCall
);
...
...
daemon/src/video/video_receive_thread.cpp
View file @
2d3d0353
...
...
@@ -316,4 +316,19 @@ void VideoReceiveThread::setRequestKeyFrameCallback(void (*cb)(const std::string
{
requestKeyFrameCallback_
=
cb
;
}
void
VideoReceiveThread
::
addDetails
(
std
::
map
<
std
::
string
,
std
::
string
>
&
details
)
{
if
(
receiving_
and
dstWidth_
>
0
and
dstHeight_
>
0
)
{
details
[
"VIDEO_SHM_PATH"
]
=
sink_
.
openedName
();
std
::
ostringstream
os
;
os
<<
dstWidth_
;
details
[
"VIDEO_WIDTH"
]
=
os
.
str
();
os
.
str
(
""
);
os
<<
dstHeight_
;
details
[
"VIDEO_HEIGHT"
]
=
os
.
str
();
}
}
}
// end namespace sfl_video
daemon/src/video/video_receive_thread.h
View file @
2d3d0353
...
...
@@ -92,6 +92,7 @@ class VideoReceiveThread : public ost::Thread {
public:
VideoReceiveThread
(
const
std
::
string
&
id
,
const
std
::
map
<
std
::
string
,
std
::
string
>
&
args
);
void
addDetails
(
std
::
map
<
std
::
string
,
std
::
string
>
&
details
);
virtual
~
VideoReceiveThread
();
virtual
void
run
();
void
setRequestKeyFrameCallback
(
void
(
*
)(
const
std
::
string
&
));
...
...
daemon/src/video/video_rtp_session.cpp
View file @
2d3d0353
...
...
@@ -155,4 +155,11 @@ void VideoRtpSession::forceKeyFrame()
ERROR
(
"Video sending thread is NULL"
);
}
void
VideoRtpSession
::
addReceivingDetails
(
std
::
map
<
std
::
string
,
std
::
string
>
&
details
)
{
if
(
receiveThread_
.
get
())
receiveThread_
->
addDetails
(
details
);
}
}
// end namespace sfl_video
daemon/src/video/video_rtp_session.h
View file @
2d3d0353
...
...
@@ -52,6 +52,7 @@ class VideoRtpSession {
unsigned
int
port
);
void
updateSDP
(
const
Sdp
&
sdp
);
void
forceKeyFrame
();
void
addReceivingDetails
(
std
::
map
<
std
::
string
,
std
::
string
>
&
details
);
private:
std
::
tr1
::
shared_ptr
<
VideoSendThread
>
sendThread_
;
...
...
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