From bc167053f3fba83170213b4bc17cb5ba7520edfd Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 11 Nov 2019 19:52:18 -0300 Subject: [PATCH] Use facingMode: user when retrieving user video --- src/client/actions/CallActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/actions/CallActions.js b/src/client/actions/CallActions.js index 8cece3c..bff2ca6 100644 --- a/src/client/actions/CallActions.js +++ b/src/client/actions/CallActions.js @@ -38,7 +38,7 @@ export const connect = () => dispatch => { } export const getCameraStream = () => dispatch => { - return getUserMedia({ video: true, audio: true }) + return getUserMedia({ video: { facingMode: 'user' }, audio: true }) .then(stream => { dispatch(StreamActions.addStream({ stream, userId: constants.ME })) return stream