在我的Windows商店应用程序中,我使用Windows.Media.Capture.CameraCaptureUI类来捕获图像和视频。录制的视频在Windows环境中运行良好。但是同样的录制文件在Ipad中播放效果不佳。
我将在此处包含代码
CameraCaptureUI dialog = new CameraCaptureUI();
dialog.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg;
dialog.VideoSettings.Format = CameraCaptureUIVideoFormat.Mp4;
dialog.VideoSettings.MaxResolution = CameraCaptureUIMaxVideoResolution.LowDefinition;
StorageFile capturedMedia = null;
if( _showVideo )
capturedMedia = await dialog.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo);
else
capturedMedia = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
请帮忙。
答案 0 :(得分:0)