CommonAPI: modify mediaplayer and videocapture APIs