Twilio-video.js: Inverted Video

Created on 10 Nov 2017  路  2Comments  路  Source: twilio/twilio-video.js

is the video supposed to be mirrored?
I can't get the video to work "normally", it always shows inverted either in React or React Native

Most helpful comment

@markandrus that solved the problem, thanks!

All 2 comments

Hi @CarlosUvaSilva,

Could you include a screenshot or example of what you mean? It can be tricky to talk about how video should "normally" display, since some apps will reflect the video about the Y-axis and some apps won't. If you use twilio-video.js's APIs for creating LocalVideoTracks, we're just calling getUserMedia and using whatever the platform provides us. If you want to reflect the video, you might be able to use the following:

video {
  transform: scaleX(-1);
}

Best,
Mark

@markandrus that solved the problem, thanks!

Was this page helpful?
0 / 5 - 0 ratings