ref(rtc-stats) update faceLandmarks naming

This commit is contained in:
Gabriel Borlea 2022-05-17 14:57:18 +03:00 committed by GitHub
parent 5152638529
commit ea5ce3f72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -122,7 +122,7 @@ class RTCStats {
* @returns {void} * @returns {void}
*/ */
sendFaceExpressionData(faceExpressionData) { sendFaceExpressionData(faceExpressionData) {
this.trace && this.trace.statsEntry('faceExpression', null, faceExpressionData); this.trace && this.trace.statsEntry('faceLandmarks', null, faceExpressionData);
} }
/** /**

View File

@ -26,7 +26,6 @@ MiddlewareRegistry.register(store => next => action => {
const config = state['features/base/config']; const config = state['features/base/config'];
const { analytics } = config; const { analytics } = config;
switch (action.type) { switch (action.type) {
case LIB_WILL_INIT: { case LIB_WILL_INIT: {
if (isRtcstatsEnabled(state)) { if (isRtcstatsEnabled(state)) {
@ -156,7 +155,7 @@ MiddlewareRegistry.register(store => next => action => {
RTCStats.sendFaceExpressionData({ RTCStats.sendFaceExpressionData({
duration, duration,
faceExpression, faceLandmarks: faceExpression,
timestamp timestamp
}); });
} }