How to change the resolution of camera while recording video in WP8

前端 未结 4 1783
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 09:19

I am using the video recording sample provided by microsoft here. I want to change the resolution of the video being recorded in my app. Currently its recording in highest resol

4条回答
  •  终归单人心
    2021-01-25 09:55

    You may try this one.

    private AudioVideoCaptureDevice VideoRecordingDevice;
    private Windows.Foundation.Size resolution = new Windows.Foundation.Size(320, 240);
    VideoRecordingDevice = await AudioVideoCaptureDevice.OpenAsync(CameraSensorLocation.Back, resolution);
    

    NB: Remember that it may only used for wp8 or later version.

提交回复
热议问题