This example explains how to crop remote stream. Cropping code is taken from this link. See how to test this demo?.