Reputation: 836
I am using OpenTok for video conferencing in my app. I want to un-mirror my publisher video so that the person at other end can read text (as right now its a mirror image). OpenTok playground provides this feature but I am unable to find sample code for the same.
Upvotes: 2
Views: 885
Reputation: 3614
As the comment states, subscribers should always see the video the right way around. Only the publisher's video is mirrored so they can see themselves in a natural way. If you want the publisher's video not to be mirrored then initialise the publisher like this:
const publisher = OT.initPublisher({ mirror: false });
Please see documentation for the mirror
property here: https://tokbox.com/developer/sdks/js/reference/OT.html#initPublisher
Upvotes: 4