Skip to content

Commit

Permalink
changes to solve minor problems in the release
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorHidalgoVT committed Apr 13, 2016
1 parent d52527f commit 99b7464
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions apps/NuboFaceProfileJava/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,25 @@
<dependency>
<groupId>com.visual-tools.nubomedia</groupId>
<artifactId>nubofacedetector</artifactId>
<version>6.4.0</version>
<version>6.4.01</version>
</dependency>

<dependency>
<groupId>com.visual-tools.nubomedia</groupId>
<artifactId>nubomouthdetector</artifactId>
<version>6.4.0</version>
<version>6.4.01</version>
</dependency>

<dependency>
<groupId>com.visual-tools.nubomedia</groupId>
<artifactId>nubonosedetector</artifactId>
<version>6.4.0</version>
<version>6.4.01</version>
</dependency>

<dependency>
<groupId>com.visual-tools.nubomedia</groupId>
<artifactId>nuboeyedetector</artifactId>
<version>6.4.0</version>
<version>6.4.01</version>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void onEvent(OnIceCandidateEvent event) {
}
});

/******** Media Logic ********/
/******** Media Logic ********/
face = new NuboFaceDetector.Builder(user.getMediaPipeline()).build();
face.sendMetaData(1);
face.detectByEvent(0);
Expand Down Expand Up @@ -337,24 +337,24 @@ private void getStats(WebSocketSession session)
{

try {
Map<String,Stats> wr_stats= webRtcEndpoint.getStats();
Map<String,Stats> wr_stats= webRtcEndpoint.getStats();

for (Stats s : wr_stats.values()) {

switch (s.getType()) {
case endpoint:
EndpointStats end_stats= (EndpointStats) s;
double e2eVideLatency= end_stats.getVideoE2ELatency() / 1000000;
for (Stats s : wr_stats.values()) {
switch (s.getType()) {
case endpoint:
EndpointStats end_stats= (EndpointStats) s;
double e2eVideLatency= end_stats.getVideoE2ELatency() / 1000000;

JsonObject response = new JsonObject();
response.addProperty("id", "videoE2Elatency");
response.addProperty("message", e2eVideLatency);
sendMessage(session,new TextMessage(response.toString()));
break;
default:
break;
}
}
JsonObject response = new JsonObject();
response.addProperty("id", "videoE2Elatency");
response.addProperty("message", e2eVideLatency);
sendMessage(session,new TextMessage(response.toString()));
break;
default:
break;
}
}
} catch (Throwable t) {
log.error("Exception getting stats...", t);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@ static bool __receive_event(KmsFaceDetect *face_detect, GstVideoFrame *frame)
}

//Uncomment the following line to use the metadata
/*res = __get_event_message(metadata->data);
/*res = __get_event_message(metadata->data); */

if (res)
face_detect->priv->num_frames_to_process = NUM_FRAMES_TO_PROCESS;*/
face_detect->priv->num_frames_to_process = NUM_FRAMES_TO_PROCESS;


return res;
Expand Down

0 comments on commit 99b7464

Please sign in to comment.