Instascan: How to change mirror effect in the camera?

Created on 27 Mar 2018  ·  8Comments  ·  Source: schmich/instascan

Most helpful comment

pass this param to fix it "mirror"
let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), mirror: false // prevents the video to be mirrored });

All 8 comments

pass this param to fix it "mirror"
let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), mirror: false // prevents the video to be mirrored });

@DysAhm Where can I change them? Sorry, but I can't find it.

is it located in app.js?

added it to self.scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5}); but doesn`t work...

@DysAhm thanx it works like charm... :)

Please where is it located??

pass this param to fix it "mirror"
let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), mirror: false // prevents the video to be mirrored });

This doesn't work for me :(

Please where is it located??

Go to app.js Search for the line self.scanner = new Instascan.Scanner({ video: document.getElementById('preview'),mirror: false, scanPeriod: 5 // prevents the video to be mirrored });

is it located in app.js?

added it to self.scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5}); but doesn`t work...

Use Comma after mirror: false, like this mirror: false, scanPeriod: 5 });

Was this page helpful?
0 / 5 - 0 ratings