[mediacontroller][common] Use PlatformEnum in MediaController.