Skip to content
Snippets Groups Projects
Commit 392dd0f2 authored by Vincent Lucas's avatar Vincent Lucas
Browse files

Adds ZRTP encryption for unidirectionnal video calls.

parent 902a60df
No related branches found
No related tags found
No related merge requests found
......@@ -683,16 +683,6 @@ else if (dataSource instanceof PullDataSource)
if (getLocalSourceID() != localSSRC)
setLocalSourceID(localSSRC);
/*
* If a ZRTP engine is available, then let it know about the
* SSRC of the new SendStream. Currently, ZRTP supports only one
* SSRC per engine.
*/
TransformEngine engine = srtpControl.getTransformEngine();
if ((engine != null) && (engine instanceof ZRTPTransformEngine))
((ZRTPTransformEngine)engine).setOwnSSRC(localSSRC);
}
catch (IOException ioe)
{
......@@ -2514,6 +2504,17 @@ protected void setLocalSourceID(long localSourceID)
this.localSourceID = localSourceID;
/*
* If a ZRTP engine is available, then let it know about the
* SSRC of the new SendStream. Currently, ZRTP supports only one
* SSRC per engine.
*/
TransformEngine engine = srtpControl.getTransformEngine();
if ((engine != null) && (engine instanceof ZRTPTransformEngine))
{
((ZRTPTransformEngine)engine).setOwnSSRC(getLocalSourceID());
}
firePropertyChange(PNAME_LOCAL_SSRC, oldValue, this.localSourceID);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment