[MediaCapture] fixed sample to work on Unified API