display viewfinder in a canvas and change method to match the video with the viewfinder canvas. Sample work with portrait, landscape orientation and can use front and back camera.