Migrated MediaCapture to unified API