//获取可设置集合
System.Collections.Generic.IReadOnlyList<IMediaEncodingProperties> res;
res = this.mediaCaptureMgr.VideoDeviceController.GetAvailableMediaStreamProperties(MediaStreamType.VideoPreview);
//设置合适的像素
await mediaCaptureMgr.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.VideoPreview, res[indexMaxResolution]);
本文将介绍如何利用System.Collections.Generic.IReadOnlyList获取可设置集合,并通过System.Threading.Tasks来实现媒体捕获管理器中视频设备控制器的流媒体属性设置,确保选择最合适的像素配置。
12万+

被折叠的 条评论
为什么被折叠?



