How to implement QR scanner in ionic 2.2.1

I want to know the process and code to implement QR scanner in ionic 2.2.1 version to scan Barcode to play videos in-app browser.