feat(rtc-stats) add timestamp to face landmarks when sending to rtc stats
This commit is contained in:
parent
537d3ae53a
commit
0259d1c260
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue