Small corrections concerning the CallInfoFrame. Displays the call duration only once the call is connected. Truncates upload and download jitter to ms (integer). Corrects typo in language resources (service.gui.callingo -> service.gui.callinfo for LOSS_RATE and JITTER).

cusax-fix
Vincent Lucas 14 years ago
parent eb569cfca0
commit 2dcd5cbba5

@ -537,8 +537,8 @@ service.gui.callinfo.VIDEO_INFO=Video info
service.gui.callinfo.LOCAL_IP=Local IP / Port
service.gui.callinfo.REMOTE_IP=Remote IP / Port
service.gui.callinfo.BANDWITH=Bandwith
service.gui.callingo.LOSS_RATE=Loss rate
service.gui.callingo.JITTER=Jitter
service.gui.callinfo.LOSS_RATE=Loss rate
service.gui.callinfo.JITTER=Jitter
service.gui.callinfo.ICE_CANDIDATE_EXTENDED_TYPE=ICE candidate extended type
service.gui.ALWAYS_TRUST=Always trust this certificate

@ -231,18 +231,20 @@ private void constructCallPeersInfo(StringBuffer stringBuffer)
*/
private void constructPeerInfo(CallPeer callPeer, StringBuffer stringBuffer)
{
Date startTime = new Date(callPeer.getCallDurationStartTime());
Date currentTime = new Date(System.currentTimeMillis());
Date callNbTimeMsSpent = GuiUtils.substractDates(
currentTime,
startTime);
stringBuffer.append(getLineString(callPeer.getAddress(), ""));
String peerAddress = callPeer.getAddress();
stringBuffer.append(getLineString(peerAddress, ""));
stringBuffer.append(getLineString(
resources.getI18NString("service.gui.callinfo.CALL_DURATION"),
GuiUtils.formatTime(callNbTimeMsSpent)));
if(callPeer.getCallDurationStartTime() !=
CallPeer.CALL_DURATION_START_TIME_UNKNOWN)
{
Date startTime = new Date(callPeer.getCallDurationStartTime());
Date currentTime = new Date(System.currentTimeMillis());
Date callNbTimeMsSpent = GuiUtils.substractDates(
currentTime,
startTime);
stringBuffer.append(getLineString(
resources.getI18NString("service.gui.callinfo.CALL_DURATION"),
GuiUtils.formatTime(callNbTimeMsSpent)));
}
if(callPeer instanceof MediaAwareCallPeer)
{
@ -334,17 +336,18 @@ private void constructAudioVideoInfo( MediaStream mediaStream,
stringBuffer.append(
getLineString(
resources.getI18NString("service.gui.callingo.LOSS_RATE"),
resources.getI18NString("service.gui.callinfo.LOSS_RATE"),
"↓ " + (int) mediaStreamStats.getDownloadPercentLoss()
+ "% ↑ "
+ (int) mediaStreamStats.getUploadPercentLoss()
+ "%"));
stringBuffer.append(
getLineString(resources.getI18NString("service.gui.callingo.JITTER"),
"↓ " + mediaStreamStats.getDownloadJitterMs()
getLineString(resources.getI18NString(
"service.gui.callinfo.JITTER"),
"↓ " + (int) mediaStreamStats.getDownloadJitterMs()
+ " ms ↑ "
+ mediaStreamStats.getUploadJitterMs() + " ms"));
+ (int) mediaStreamStats.getUploadJitterMs() + " ms"));
}
/**

Loading…
Cancel
Save