feat(rtc-stats) add timestamp to face landmarks when sending to rtc stats

This commit is contained in:
Gabriel Borlea 2022-04-11 12:26:31 +03:00 committed by GitHub
parent 537d3ae53a
commit 0259d1c260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -119,11 +119,12 @@ MiddlewareRegistry.register(store => next => action => {
} }
case ADD_FACE_EXPRESSION: { case ADD_FACE_EXPRESSION: {
if (canSendRtcstatsData(state)) { if (canSendRtcstatsData(state)) {
const { duration, faceExpression } = action; const { duration, faceExpression, timestamp } = action;
RTCStats.sendFaceExpressionData({ RTCStats.sendFaceExpressionData({
duration, duration,
faceExpression faceExpression,
timestamp
}); });
} }
break; break;