//获取可设置集合
System.Collections.Generic.IReadOnlyList<IMediaEncodingProperties> res;
res = this.mediaCaptureMgr.VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType.VideoPreview);
//设置合适的像素
await mediaCaptureMgr.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.VideoPreview, res[indexMaxResolution]);