Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
add(face-landmarks): flag for rtc stats (#11682)
Gabriel Borlea624f88e06944
diff --git a/config.js b/config.jsindex 80316e091e..fd0bf412cf 100644--- a/config.js+++ b/config.js@@ -788,6 +788,9 @@ var config = {// // Enables displaying face expressions in speaker stats// enableDisplayFaceExpressions: false,+ // // Enable rtc stats for face landmarks+ // enableRTCStats: false,+// // Minimum required face movement percentage threshold for sending new face centering coordinates data.// faceCenteringThreshold: 10,diff --git a/react/features/rtcstats/middleware.js b/react/features/rtcstats/middleware.jsindex 1ed716bf8e..4562d51a7c 100644--- a/react/features/rtcstats/middleware.js+++ b/react/features/rtcstats/middleware.js@@ -25,7 +25,7 @@ import logger from './logger';MiddlewareRegistry.register(store => next => action => {const state = store.getState();const config = state['features/base/config'];- const { analytics } = config;+ const { analytics, faceLandmarks } = config;switch (action.type) {case LIB_WILL_INIT: {@@ -151,7 +151,7 @@ MiddlewareRegistry.register(store => next => action => {break;}case ADD_FACE_EXPRESSION: {- if (canSendRtcstatsData(state)) {+ if (canSendRtcstatsData(state) && faceLandmarks && faceLandmarks.enableRTCStats) {const { duration, faceExpression, timestamp } = action;RTCStats.sendFaceExpressionData({