ref(rtc-stats) update faceLandmarks naming
This commit is contained in:
parent
5152638529
commit
ea5ce3f72f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue