Give this method an XOverlay that you've created from a videoSink. like: monitorOverlay.xoverlay = new XOverlay( videoSink );
See Implementation
Give this method an XOverlay that you've created from a videoSink. like: monitorOverlay.xoverlay = new XOverlay( videoSink );